From 26aa4e4e7fed2b2ef28e7d1edf50d1add726efaa Mon Sep 17 00:00:00 2001 From: wonderboymusic Date: Thu, 3 Jul 2014 01:50:02 +0000 Subject: [PATCH] Make sure permalink structure is consistent when running query tests. See #28706. git-svn-id: https://develop.svn.wordpress.org/trunk@28967 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/query.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/phpunit/tests/query.php b/tests/phpunit/tests/query.php index 60d69cf230..cf59d909c1 100644 --- a/tests/phpunit/tests/query.php +++ b/tests/phpunit/tests/query.php @@ -2,6 +2,18 @@ class Tests_Query extends WP_UnitTestCase { + function setUp() { + global $wp_rewrite; + parent::setUp(); + + $wp_rewrite->init(); + $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); + + create_initial_taxonomies(); + + $wp_rewrite->flush_rules(); + } + /** * @ticket 16746 */