Commit 45fd8e8b authored by Erick Hitter's avatar Erick Hitter

5.3 tests don't allow for short-array syntax

parent 233e4d14
Pipeline #884 passed with stages
in 12 minutes and 20 seconds
......@@ -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' );
......
......@@ -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 );
......
......@@ -37,9 +37,9 @@ class RedirectCallbacks extends WP_UnitTestCase {
*/
protected function get_new_post() {
return $this->factory->post->create(
[
array(
'post_type' => 'post',
]
)
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment