diff --git a/tests/phpunit/tests/query.php b/tests/phpunit/tests/query.php index 99de2624d924c..6d6174ab96eb0 100644 --- a/tests/phpunit/tests/query.php +++ b/tests/phpunit/tests/query.php @@ -755,9 +755,9 @@ public function test_the_loop_when_querying_post_parents_only() { ) ); - $child = self::factory()->post->create( + $child = self::factory()->post->create( array( - 'post_type' => 'page', + 'post_type' => 'page', 'post_parent' => $parent, ) );