Skip to content

Commit 7b22c39

Browse files
Update tests/phpunit/tests/rest-api/rest-comments-controller.php
Co-authored-by: Pascal Birchler <[email protected]>
1 parent f435d93 commit 7b22c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/rest-api/rest-comments-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
119119
array(
120120
'comment_content' => "Comment {$i}",
121121
'comment_post_ID' => self::$post_id,
122-
'status' => ( rand( 0, 100 ) % 2 === 0 ) ? 'approve' : 'hold',
122+
'status' => ( $i % 2 === 0 ) ? 'approve' : 'hold',
123123
)
124124
);
125125
}

0 commit comments

Comments
 (0)