From ae5a6ee8c8a77fce072e0a6ebcf410393e6c7a27 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sun, 27 Sep 2020 14:07:18 -0700 Subject: [PATCH] Fix syntax for 5.3 --- tests/test-post-filters.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/test-post-filters.php b/tests/test-post-filters.php index 4177b55..18ec666 100755 --- a/tests/test-post-filters.php +++ b/tests/test-post-filters.php @@ -41,12 +41,12 @@ class PostFilters extends WP_UnitTestCase { parent::setUp(); static::$post_id = $this->factory->post->create( - [ + array( 'post_title' => 'Pagination Test', 'post_status' => 'publish', 'post_date' => '2019-01-01 00:01:01', 'post_content' => implode( static::$page_break, static::$pages_content ), - ] + ) ); } @@ -55,9 +55,9 @@ class PostFilters extends WP_UnitTestCase { */ public function test_view_page_1(): void { query_posts( - [ + array( 'p' => static::$post_id, - ] + ) ); $this->assertTrue( have_posts() ); @@ -74,10 +74,10 @@ class PostFilters extends WP_UnitTestCase { */ public function test_view_page_2(): void { query_posts( - [ + array( 'p' => static::$post_id, 'page' => 2, - ] + ) ); $this->assertTrue( have_posts() ); @@ -94,10 +94,10 @@ class PostFilters extends WP_UnitTestCase { */ public function test_view_page_3(): void { query_posts( - [ + array( 'p' => static::$post_id, 'page' => 3, - ] + ) ); $this->assertTrue( have_posts() ); @@ -114,10 +114,10 @@ class PostFilters extends WP_UnitTestCase { */ public function test_view_all(): void { query_posts( - [ + array( 'p' => static::$post_id, 'view-all' => true, - ] + ) ); $this->assertTrue( have_posts() ); -- GitLab