[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 14:05:50 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 jdgrimes):

 Replying to [comment:9 Denis-de-Bernardy]:
 > There's still a problem when you run the tests without dropping/re-
 creating the database:

 Yes, I had experienced that while debugging this as well. Although
 [https://core.trac.wordpress.org/browser/trunk/wp-tests-config-
 sample.php#L22 wp-tests-config-sample.php] claims that all tables with the
 prefix will be dropped, that isn't true. (It may have been before, I don't
 know.) Only
 [https://core.trac.wordpress.org/browser/trunk/tests/phpunit/includes/install.php#L34
 the tables for the main site on the network are dropped], and then only
 those which core creates. So if for some reason the changes get committed
 to MySQL, you may have to clean a second site's tables from the database
 manually. Normally this will always `ROLLBACK` though.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27001#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list