[wp-trac] [WordPress Trac] #28692: Polluted table_prefix and switched_stack in multisite unit tests

WordPress Trac noreply at wordpress.org
Mon Jun 30 17:14:45 UTC 2014


#28692: Polluted table_prefix and switched_stack in multisite unit tests
------------------------------+------------------------
 Reporter:  jeremyfelt        |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.0
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  multisite
------------------------------+------------------------

Comment (by jeremyfelt):

 [https://core.trac.wordpress.org/attachment/ticket/28692/28692.diff
 28692.diff] loops through `restore_current_blog()` on test tear down until
 we are back to the base site. It also resets the global `$table_prefix`
 when testing multisite's bootstrap, as we include `ms-settings.php`
 repeatedly, which relies on this to be pretty clean.

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


More information about the wp-trac mailing list