diff --git a/tests/phpunit/tests/query/postStatus.php b/tests/phpunit/tests/query/postStatus.php index 244bfdc9e884..67ae96d7cfd0 100644 --- a/tests/phpunit/tests/query/postStatus.php +++ b/tests/phpunit/tests/query/postStatus.php @@ -469,9 +469,9 @@ public function test_non_singular_queries_using_post_type_any_should_respect_pos 'wptests_pt1', array( 'exclude_from_search' => false, - 'capabilities' => [ + 'capabilities' => array( 'read_private_posts' => 'read_private_pt1s', - ], + ), ) ); @@ -549,9 +549,9 @@ public function test_non_singular_queries_using_multiple_post_type_should_respec 'wptests_pt1', array( 'exclude_from_search' => false, - 'capabilities' => [ + 'capabilities' => array( 'read_private_posts' => 'read_private_pt1s', - ], + ), ) ); @@ -611,7 +611,7 @@ public function test_non_singular_queries_using_multiple_post_type_should_respec $q = new WP_Query( array( - 'post_type' => [ 'wptests_pt1', 'wptests_pt2' ], + 'post_type' => array( 'wptests_pt1', 'wptests_pt2' ), ) );