Make WordPress Core


Ignore:
Timestamp:
04/21/2016 03:52:33 PM (9 years ago)
Author:
boonebgorges
Message:

Tests: More explicit fixture content when testing s=0 query string.

After [36647], the unit test generator sequence can put a 0 into the
'post_excerpt' field of a post fixture, causing false positives.

See [36520] for a parallel fix involving 'post_content'.

Fixes #36622.

File:
1 edited

Legend:

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

    r36989 r37280  
    171171            'post_status' => 'publish',
    172172            'post_title' => '1',
    173             'post_content' => '',
     173            'post_content' => 'this post contains no zeroes',
     174            'post_excerpt' => 'this post contains no zeroes',
    174175        ) );
    175176
     
    177178            'post_status' => 'publish',
    178179            'post_title' => '0',
    179             'post_content' => '',
     180            'post_content' => 'this post contains zeroes',
     181            'post_excerpt' => 'this post containts zeroes',
    180182        ) );
    181183
Note: See TracChangeset for help on using the changeset viewer.