We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d13555b commit e4e2a47Copy full SHA for e4e2a47
1 file changed
tests/phpunit/tests/post/getPosts.php
@@ -169,12 +169,11 @@ public function test_explicit_offset_non_0_should_override_paged() {
169
*
170
* @ticket 64813
171
*/
172
- public function test_should_accept_query_string_args() {
173
- $p1 = self::factory()->post->create();
174
- $p2 = self::factory()->post->create();
+ public function test_should_accept_query_string_args(): void {
+ self::factory()->post->create();
+ $second_post_id = self::factory()->post->create();
175
+ $found_post_ids = get_posts( 'numberposts=1&fields=ids' );
176
- $found = get_posts( 'numberposts=1&fields=ids' );
177
-
178
- $this->assertSame( array( $p2 ), $found );
+ $this->assertSame( array( $second_post_id ), $found_post_ids );
179
}
180
0 commit comments