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
This commit is contained in:
johnbillion 2015-12-21 06:59:05 +00:00
parent 8567d80ade
commit 8b5747a108
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ class Tests_Query_Vars extends WP_UnitTestCase {
*/ */
public function testPublicQueryVarsAreAsExpected() { public function testPublicQueryVarsAreAsExpected() {
global $wp; global $wp;
// Re-initialise any dynamically-added public query vars:
do_action( 'init' );
$this->assertEquals( array( $this->assertEquals( array(
// Static public query vars: // Static public query vars: