Skip to content
Snippets Groups Projects
Commit 45fd8e8b authored by Erick Hitter's avatar Erick Hitter
Browse files

5.3 tests don't allow for short-array syntax

parent 233e4d14
No related branches found
No related tags found
1 merge request!5Revise test matrix
Pipeline #884 passed with warnings with stages
in 12 minutes and 20 seconds
...@@ -49,9 +49,9 @@ class AdminCallbacks extends WP_UnitTestCase { ...@@ -49,9 +49,9 @@ class AdminCallbacks extends WP_UnitTestCase {
$this->plugin = external_permalinks_redux::get_instance(); $this->plugin = external_permalinks_redux::get_instance();
$this->post_id = $this->factory->post->create( $this->post_id = $this->factory->post->create(
[ array(
'post_type' => 'post', 'post_type' => 'post',
] )
); );
$this->nonce = wp_create_nonce( 'external-permalinks-redux' ); $this->nonce = wp_create_nonce( 'external-permalinks-redux' );
......
...@@ -37,17 +37,17 @@ class PermalinkFilters extends WP_UnitTestCase { ...@@ -37,17 +37,17 @@ class PermalinkFilters extends WP_UnitTestCase {
$plugin = external_permalinks_redux::get_instance(); $plugin = external_permalinks_redux::get_instance();
$this->post_id = $this->factory->post->create( $this->post_id = $this->factory->post->create(
[ array(
'post_type' => 'post', 'post_type' => 'post',
] )
); );
update_post_meta( $this->post_id, $plugin->meta_key_target, static::DESTINATION ); update_post_meta( $this->post_id, $plugin->meta_key_target, static::DESTINATION );
$this->page_id = $this->factory->post->create( $this->page_id = $this->factory->post->create(
[ array(
'post_type' => 'page', 'post_type' => 'page',
] )
); );
update_post_meta( $this->page_id, $plugin->meta_key_target, static::DESTINATION ); update_post_meta( $this->page_id, $plugin->meta_key_target, static::DESTINATION );
......
...@@ -37,9 +37,9 @@ class RedirectCallbacks extends WP_UnitTestCase { ...@@ -37,9 +37,9 @@ class RedirectCallbacks extends WP_UnitTestCase {
*/ */
protected function get_new_post() { protected function get_new_post() {
return $this->factory->post->create( return $this->factory->post->create(
[ array(
'post_type' => 'post', 'post_type' => 'post',
] )
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment