Commit bd985d9a authored by Erick Hitter's avatar Erick Hitter

Tests need to support 5.2.

parent a2bcc618
Pipeline #1006 failed with stages
in 1 minute and 44 seconds
...@@ -124,11 +124,11 @@ class PluginTest extends WP_UnitTestCase { ...@@ -124,11 +124,11 @@ class PluginTest extends WP_UnitTestCase {
$redirect = ETH_Redirect_To_Latest_Post::get_instance()->get_redirect_for_request( $fake_request ); $redirect = ETH_Redirect_To_Latest_Post::get_instance()->get_redirect_for_request( $fake_request );
$object_by_slug = get_posts( $object_by_slug = get_posts(
[ array(
'posts_per_page' => 1, 'posts_per_page' => 1,
'post_status' => 'any', 'post_status' => 'any',
'name' => $fake_request->query_vars['name'], 'name' => $fake_request->query_vars['name'],
] )
); );
$this->assertCount( $this->assertCount(
...@@ -159,12 +159,12 @@ class PluginTest extends WP_UnitTestCase { ...@@ -159,12 +159,12 @@ class PluginTest extends WP_UnitTestCase {
$redirect = ETH_Redirect_To_Latest_Post::get_instance()->get_redirect_for_request( $fake_request ); $redirect = ETH_Redirect_To_Latest_Post::get_instance()->get_redirect_for_request( $fake_request );
$object_by_slug = get_posts( $object_by_slug = get_posts(
[ array(
'posts_per_page' => 1, 'posts_per_page' => 1,
'post_status' => 'any', 'post_status' => 'any',
'post_type' => 'page', 'post_type' => 'page',
'pagename' => $fake_request->query_vars['pagename'], 'pagename' => $fake_request->query_vars['pagename'],
] )
); );
$this->assertCount( $this->assertCount(
......
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