[wp-trac] [WordPress Trac] #27884: Unit testing Multisite's bootstrap
WordPress Trac
noreply at wordpress.org
Fri Apr 18 05:07:51 UTC 2014
#27884: Unit testing Multisite's bootstrap
----------------------------+------------------------------
Reporter: jeremyfelt | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: | Focuses: multisite
----------------------------+------------------------------
Comment (by jeremyfelt):
So. To start things off at the bottom.
If we move a few things from `ms-settings.php` to `wp-settings.php` and
remove the need for ms-settings to call any external files, we can
**technically** include `ms-settings.php` at any time. This could mean
unsetting `$current_site` and `$current_blog`, changing the `$_SERVER`
request, and then reloading that part of the bootstrap in a unit test to
see if we get expected results.
[https://core.trac.wordpress.org/attachment/ticket/27884/unit-hack.diff
unit-hack.diff] does this. ;-/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27884#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list