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

Tests need to support 5.2.

parent a2bcc618
No related branches found
No related tags found
1 merge request!2v0.3
Pipeline #1006 failed
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
......@@ -124,11 +124,11 @@ class PluginTest extends WP_UnitTestCase {
$redirect = ETH_Redirect_To_Latest_Post::get_instance()->get_redirect_for_request( $fake_request );
$object_by_slug = get_posts(
[
array(
'posts_per_page' => 1,
'post_status' => 'any',
'name' => $fake_request->query_vars['name'],
]
)
);
$this->assertCount(
......@@ -159,12 +159,12 @@ class PluginTest extends WP_UnitTestCase {
$redirect = ETH_Redirect_To_Latest_Post::get_instance()->get_redirect_for_request( $fake_request );
$object_by_slug = get_posts(
[
array(
'posts_per_page' => 1,
'post_status' => 'any',
'post_type' => 'page',
'pagename' => $fake_request->query_vars['pagename'],
]
)
);
$this->assertCount(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment