Unit Tests Failing
-
Hi everyone,
I’m just getting started with the unit tests and have gotten
phpunitworking and I’m trying to run the unit tests on the 3.5.1 code base. I’m failing a test and getting this error:Fatal error: Call to undefined function wp_unslash() in /Users/spinlock/WordPress/wordpress-tests/tests/attachment/slashes.php on line 45 INFO: Trac was inaccessible, so a local ticket status cache was used.I think the issue is that I have 2 directories
wordpress-testswhich is the svn repository for the unit tests andwordpress-3.5.1for the code base. If I point towordpress-3.5.1inwp-tests-config.phpI get the above error. But, if I pointwp-tests-config.phptowordpress-tests/wordpress/the test suite runs to completion.Can someone explain what’s going on? Should I be checking out a different suite of tests to run against wordpress-3.5.1?
Thanks!
The topic ‘Unit Tests Failing’ is closed to new replies.