mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user