[wp-trac] [WordPress Trac] #27001: phpunit fails w/ a fatal error when using the multisite config
WordPress Trac
noreply at wordpress.org
Tue Feb 4 11:04:36 UTC 2014
#27001: phpunit fails w/ a fatal error when using the multisite config
-------------------------------+---------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.9
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses:
-------------------------------+---------------------
Comment (by Denis-de-Bernardy):
There's still a problem when you run the tests without dropping/re-
creating the database:
{{{
phpunit -c tests/phpunit/multisite.xml
Installing...
Installing network...
Running as multisite...
Not running ajax tests... To execute these, use --group ajax.
PHPUnit 3.7.31 by Sebastian Bergmann.
Configuration read from
/Users/denis/wk/wpdevel/tests/phpunit/multisite.xml
............................................................. 61 / 1966
( 3%)
............SS...SSSSSS.............S...SS............SS..... 122 / 1966
( 6%)
...........S............S.................................S.. 183 / 1966
( 9%)
...................SSS.......SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 244 / 1966
( 12%)
S..S........................S............................S... 305 / 1966
( 15%)
................S...........................S.SSSSSSSSS...... 366 / 1966
( 18%)
............................S..................S.......I..... 427 / 1966
( 21%)
....................................................SSSS.S..S 488 / 1966
( 24%)
SSSS......................................................... 549 / 1966
( 27%)
............................................................. 610 / 1966
( 31%)
............................................................. 671 / 1966
( 34%)
............................................................. 732 / 1966
( 37%)
............................................................. 793 / 1966
( 40%)
..........................S.................................. 854 / 1966
( 43%)
............................................................. 915 / 1966
( 46%)
............................................................. 976 / 1966
( 49%)
..............................SSSSSS.........S.....S......... 1037 / 1966
( 52%)
......................................<h1>Already Installed</h1><p>You
appear to have already installed WordPress. To reinstall please clear your
old database tables first.</p></body></html>
}}}
After clearing the DB, the tests still fail in two locations:
{{{
1) Tests_Canonical::test with data set #0 ('?cat=%d', '/category/parent/',
15256)
Ticket #15256
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'/category/parent/'
+'/blog/category/parent/'
/Users/denis/wk/wpdevel/tests/phpunit/tests/canonical.php:133
2) Tests_Link::test_wp_get_shortlink
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'http://wptest.org/blog/2014/02/04/post-title-1/'
+'http://wptest.org/?p=1213'
/Users/denis/wk/wpdevel/tests/phpunit/tests/link.php:36
FAILURES!
Tests: 1920, Assertions: 9503, Failures: 2, Incomplete: 1, Skipped: 116.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27001#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list