diff --git a/tests/test-admin-callbacks.php b/tests/test-admin-callbacks.php index fa3787fcf71543b87dc5e66ce196f2ac2002c39b..61ccbb053b8b313010590fa3833010a55076780b 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 2b2f4cfcf3d0406baab4d892a4499508f1177a0e..508318f733a72e1b81a3b1936d5c69b5461336a0 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 e0b914bf0698d887cba9e82c69aa383b3c3699ee..be3eea3c353233ae1e28742a23b9351493c6b684 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', - ] + ) ); }