mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-19 10:44:24 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57308 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -156,7 +156,7 @@ class Tests_Query_Results extends WP_UnitTestCase {
|
||||
self::$post_ids[] = $factory->post->create(
|
||||
array(
|
||||
'post_title' => 'no-comments',
|
||||
'post_date' => '2009-10-01 00:00:00',
|
||||
'post_date' => '2009-10-15 00:00:00',
|
||||
)
|
||||
);
|
||||
self::$post_ids[] = $factory->post->create(
|
||||
|
||||
Reference in New Issue
Block a user