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

No short array syntax since we test against 5.2.

parent 979c8f55
Branches
Tags
1 merge request!4v0.6
Pipeline #999 failed
......@@ -31,9 +31,9 @@ class PluginTest extends WP_UnitTestCase {
static::$post_id_published = $this->factory->post->create();
static::$post_id_draft = $this->factory->post->create(
[
array(
'post_status' => 'draft',
]
)
);
}
......@@ -53,10 +53,10 @@ class PluginTest extends WP_UnitTestCase {
*/
public function test_published_post_redirect() {
$fake_request = new \stdClass();
$fake_request->query_vars = [
$fake_request->query_vars = array(
'p' => static::$post_id_published,
'eth-shortlink' => true,
];
);
$redirect = ETH_Simple_Shortlinks::get_instance()->get_redirect_for_request( $fake_request );
......@@ -69,10 +69,10 @@ class PluginTest extends WP_UnitTestCase {
*/
public function test_draft_post_redirect() {
$fake_request = new \stdClass();
$fake_request->query_vars = [
$fake_request->query_vars = array(
'p' => static::$post_id_draft,
'eth-shortlink' => true,
];
);
$redirect = ETH_Simple_Shortlinks::get_instance()->get_redirect_for_request( $fake_request );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment