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:
parent
0e6951b7aa
commit
3a0234982c
|
@ -145,11 +145,13 @@ class Tests_Query_Search extends WP_UnitTestCase {
|
||||||
$p1 = $this->factory->post->create( array(
|
$p1 = $this->factory->post->create( array(
|
||||||
'post_status' => 'publish',
|
'post_status' => 'publish',
|
||||||
'post_title' => '1',
|
'post_title' => '1',
|
||||||
|
'post_content' => '',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$p2 = $this->factory->post->create( array(
|
$p2 = $this->factory->post->create( array(
|
||||||
'post_status' => 'publish',
|
'post_status' => 'publish',
|
||||||
'post_title' => '0',
|
'post_title' => '0',
|
||||||
|
'post_content' => '',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$q = new WP_Query( array(
|
$q = new WP_Query( array(
|
||||||
|
|
Loading…
Reference in New Issue