Unit Tests Failing
-
Hi everyone,
I’m just getting started with the unit tests and have gotten
phpunit
working 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-tests
which is the svn repository for the unit tests andwordpress-3.5.1
for the code base. If I point towordpress-3.5.1
inwp-tests-config.php
I get the above error. But, if I pointwp-tests-config.php
towordpress-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!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Unit Tests Failing’ is closed to new replies.