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:
parent
8567d80ade
commit
8b5747a108
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue