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
This commit is contained in:
Boone Gorges
2016-02-12 21:06:41 +00:00
parent 0e6951b7aa
commit 3a0234982c

View File

@@ -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(