Commit 81682933 authored by Erick Hitter's avatar Erick Hitter

No short array syntax since we test against 5.2.

parent 979c8f55
Pipeline #999 failed with stages
in 2 minutes and 31 seconds
......@@ -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 );
......
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