From 45fd8e8b09e078203694b91a4f828219f8ab70b6 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Tue, 16 Apr 2019 20:34:59 -0700 Subject: [PATCH] 5.3 tests don't allow for short-array syntax --- tests/test-admin-callbacks.php | 4 ++-- tests/test-permalink-filters.php | 8 ++++---- tests/test-redirect-callbacks.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test-admin-callbacks.php b/tests/test-admin-callbacks.php index fa3787f..61ccbb0 100755 --- a/tests/test-admin-callbacks.php +++ b/tests/test-admin-callbacks.php @@ -49,9 +49,9 @@ class AdminCallbacks extends WP_UnitTestCase { $this->plugin = external_permalinks_redux::get_instance(); $this->post_id = $this->factory->post->create( - [ + array( 'post_type' => 'post', - ] + ) ); $this->nonce = wp_create_nonce( 'external-permalinks-redux' ); diff --git a/tests/test-permalink-filters.php b/tests/test-permalink-filters.php index 2b2f4cf..508318f 100755 --- a/tests/test-permalink-filters.php +++ b/tests/test-permalink-filters.php @@ -37,17 +37,17 @@ class PermalinkFilters extends WP_UnitTestCase { $plugin = external_permalinks_redux::get_instance(); $this->post_id = $this->factory->post->create( - [ + array( 'post_type' => 'post', - ] + ) ); update_post_meta( $this->post_id, $plugin->meta_key_target, static::DESTINATION ); $this->page_id = $this->factory->post->create( - [ + array( 'post_type' => 'page', - ] + ) ); update_post_meta( $this->page_id, $plugin->meta_key_target, static::DESTINATION ); diff --git a/tests/test-redirect-callbacks.php b/tests/test-redirect-callbacks.php index e0b914b..be3eea3 100755 --- a/tests/test-redirect-callbacks.php +++ b/tests/test-redirect-callbacks.php @@ -37,9 +37,9 @@ class RedirectCallbacks extends WP_UnitTestCase { */ protected function get_new_post() { return $this->factory->post->create( - [ + array( 'post_type' => 'post', - ] + ) ); } -- GitLab