From 7fc02a2abd4837d301482ce001874e2d15d21189 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sun, 12 Oct 2014 01:41:43 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/ms.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/tests/ms.php b/tests/phpunit/tests/ms.php index 0bc9a60fd7..c61a522e06 100644 --- a/tests/phpunit/tests/ms.php +++ b/tests/phpunit/tests/ms.php @@ -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, '/' ); } /**