Skip to content

Commit 37d6453

Browse files
committed
Modify date for title test.
1 parent be28e33 commit 37d6453

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/phpunit/tests/query/deterministicOrdering.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,11 @@ public function test_deterministic_ordering_with_post_title() {
8989
$post_ids = array();
9090

9191
for ( $i = 1; $i <= 15; $i++ ) {
92+
$post_day = str_pad( (string) $i, 2, '0', STR_PAD_LEFT );
9293
$post_ids[] = self::factory()->post->create(
9394
array(
9495
'post_title' => $identical_title,
95-
'post_date' => "2023-01-0$i 10:00:00",
96+
'post_date' => "2023-01-{$post_day} 10:00:00",
9697
)
9798
);
9899
}

0 commit comments

Comments
 (0)