From f59a3b54c842e609283d4151cc622ae546ab0574 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 27 Aug 2016 17:02:54 +0000 Subject: [PATCH] Build/Test tools: Ensure the `Tests_Query_Conditionals` tests set up the environment correctly before re-registering initial taxonomies. Fixes #37851 git-svn-id: https://develop.svn.wordpress.org/trunk@38407 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/query/conditionals.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/query/conditionals.php b/tests/phpunit/tests/query/conditionals.php index b09b753fc8..8b5820e953 100644 --- a/tests/phpunit/tests/query/conditionals.php +++ b/tests/phpunit/tests/query/conditionals.php @@ -22,9 +22,9 @@ class Tests_Query_Conditionals extends WP_UnitTestCase { update_option( 'comments_per_page', 5 ); update_option( 'posts_per_page', 5 ); - create_initial_taxonomies(); - $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); + + create_initial_taxonomies(); } function test_home() {