Make WordPress Core

Changeset 57308


Ignore:
Timestamp:
01/18/2024 06:38:23 PM (9 months ago)
Author:
flixos90
Message:

Build/Test Tools: Fix unstable query tests.

Three WP_Query tests could randomly fail due to an undefined order because two test posts were using the exact same post_date.

Props boonebgorges, flixos90.
Fixes #60288.

File:
1 edited

Legend:

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

    r56548 r57308  
    157157            array(
    158158                'post_title' => 'no-comments',
    159                 'post_date'  => '2009-10-01 00:00:00',
     159                'post_date'  => '2009-10-15 00:00:00',
    160160            )
    161161        );
Note: See TracChangeset for help on using the changeset viewer.