mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user