From 3a0234982c77716598cfde8d06434a3dec443e49 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Fri, 12 Feb 2016 21:06:41 +0000 Subject: [PATCH] Make sure fixtures have empty `post_content` in search test. The generator sequence was causing false positives when the search terms ('1' and '0') happened to match the current sequence number (eg, 'Post content 190'). Introduced in [36278]. See #31025. git-svn-id: https://develop.svn.wordpress.org/trunk@36520 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/query/search.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/tests/query/search.php b/tests/phpunit/tests/query/search.php index a870110992..859cd98172 100644 --- a/tests/phpunit/tests/query/search.php +++ b/tests/phpunit/tests/query/search.php @@ -145,11 +145,13 @@ class Tests_Query_Search extends WP_UnitTestCase { $p1 = $this->factory->post->create( array( 'post_status' => 'publish', 'post_title' => '1', + 'post_content' => '', ) ); $p2 = $this->factory->post->create( array( 'post_status' => 'publish', 'post_title' => '0', + 'post_content' => '', ) ); $q = new WP_Query( array(