[wp-trac] [WordPress Trac] #27884: Unit testing Multisite's bootstrap

WordPress Trac noreply at wordpress.org
Fri Apr 18 05:05:55 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          |   Keywords:
  Focuses:  multisite       |
 This ticket is prodded by the cause of #27866.

 We were able to add a few tests for the site and network finding process
 in #27003 during 3.8 development, but we're still limited by the structure
 of ms-settings.php pretty severely.

 We should be able to test how `$_SERVER` requests turn into expected
 `$current_site` and `$current_blog` globals.

 In an ideal world, we could also harness something in our tests to change
 the `DOMAIN_CURRENT_SITE` and `PATH_CURRENT_SITE` constants on every test
 to test various situations. If nothing else, we can initiate phpunit with
 different values.

Ticket URL: <https://core.trac.wordpress.org/ticket/27884>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list