Make WordPress Core


Ignore:
Timestamp:
02/12/2016 09:06:41 PM (9 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/search.php

    r36404 r36520  
    146146            'post_status' => 'publish',
    147147            'post_title' => '1',
     148            'post_content' => '',
    148149        ) );
    149150
     
    151152            'post_status' => 'publish',
    152153            'post_title' => '0',
     154            'post_content' => '',
    153155        ) );
    154156
Note: See TracChangeset for help on using the changeset viewer.