[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:11:46 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 | Keywords: has-patch
Focuses: multisite |
------------------------------+-----------------------
At present, and seemingly since [27511], there are many test failures in
multisite around various queries. Through these failures, I was seeing
several `Cannot use object of type WP_Error as array` messages appear
because the tests were trying to use database tables that didn't exist due
to a polluted `$_wp_switched_stack` that still thought it was on site 67
after a tear down.
As of [28910], this gets even crazier and pollutes `$table_prefix` so that
we end up with queries for `wptests_66_66_66_67_67_67_68_terms`, etc...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28692>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list