Reset multisite unit tests global stack to original host after testing bootstrap

After using `_setup_host_request()` to test multiple domain and path combinations, use the same to set the global stack back to a domain of `WP_TESTS_DOMAIN` and path of `/`.

Fixes #29930


git-svn-id: https://develop.svn.wordpress.org/trunk@29881 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2014-10-12 01:41:43 +00:00
parent bd0e6790a5
commit 7fc02a2abd
1 changed files with 3 additions and 0 deletions

View File

@ -1595,6 +1595,9 @@ class Tests_MS extends WP_UnitTestCase {
$this->_setup_host_request( 'make.wordpress.org', '/foo/' );
$this->assertEquals( $ids['make.wordpress.org/foo/'], $current_blog->blog_id );
$this->assertEquals( $network_ids['make.wordpress.org/'], $current_blog->site_id );
// Request the original tests domain and path to unpollute the stack.
$this->_setup_host_request( WP_TESTS_DOMAIN, '/' );
}
/**