From 8b5747a108eaee67963202b48f9d316e984cc95e Mon Sep 17 00:00:00 2001 From: johnbillion Date: Mon, 21 Dec 2015 06:59:05 +0000 Subject: [PATCH] Query: Re-initialise any dynamically-added public query vars before running the public query vars test. See #35115 git-svn-id: https://develop.svn.wordpress.org/trunk@36048 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/query/vars.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/tests/query/vars.php b/tests/phpunit/tests/query/vars.php index 0720a83f14..758fb86580 100644 --- a/tests/phpunit/tests/query/vars.php +++ b/tests/phpunit/tests/query/vars.php @@ -12,6 +12,10 @@ class Tests_Query_Vars extends WP_UnitTestCase { */ public function testPublicQueryVarsAreAsExpected() { global $wp; + + // Re-initialise any dynamically-added public query vars: + do_action( 'init' ); + $this->assertEquals( array( // Static public query vars: