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:
parent
bd0e6790a5
commit
7fc02a2abd
|
@ -1595,6 +1595,9 @@ class Tests_MS extends WP_UnitTestCase {
|
||||||
$this->_setup_host_request( 'make.wordpress.org', '/foo/' );
|
$this->_setup_host_request( 'make.wordpress.org', '/foo/' );
|
||||||
$this->assertEquals( $ids['make.wordpress.org/foo/'], $current_blog->blog_id );
|
$this->assertEquals( $ids['make.wordpress.org/foo/'], $current_blog->blog_id );
|
||||||
$this->assertEquals( $network_ids['make.wordpress.org/'], $current_blog->site_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, '/' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue