From 9dc7afd478cfeccaf4bdea4580f5b3a8444ee0b7 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 11 Sep 2013 17:40:46 +0000 Subject: [PATCH] Add `set_current_screen( 'front' )` to `query/conditionals` tests `setUp` routine so that cruff from previous tests doesn't cause every conditional test to fail in debug mode. See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@25352 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/query/conditionals.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/tests/query/conditionals.php b/tests/phpunit/tests/query/conditionals.php index 6c1af44998..8a75395d63 100644 --- a/tests/phpunit/tests/query/conditionals.php +++ b/tests/phpunit/tests/query/conditionals.php @@ -17,6 +17,8 @@ class Tests_Query_Conditionals extends WP_UnitTestCase { function setUp() { parent::setUp(); + set_current_screen( 'front' ); + update_option( 'comments_per_page', 5 ); update_option( 'posts_per_page', 5 );