Skip to content

Commit a418cc9

Browse files
committed
Fix MobileRedirection tests that should not have previously passed
1 parent 48abd76 commit a418cc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/php/src/MobileRedirectionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function test_redirect_on_transitional_and_not_available() {
156156
AMP_Options_Manager::update_option( Option::THEME_SUPPORT, AMP_Theme_Support::TRANSITIONAL_MODE_SLUG );
157157
AMP_Options_Manager::update_option( Option::ALL_TEMPLATES_SUPPORTED, false );
158158
AMP_Options_Manager::update_option( Option::SUPPORTED_TEMPLATES, [ 'is_author' ] );
159-
$this->go_to( amp_add_paired_endpoint( '/' ) );
159+
$this->go_to( '/' );
160160
$this->assertFalse( amp_is_canonical() );
161161
$this->assertFalse( amp_is_available() );
162162
$this->instance->redirect();
@@ -190,7 +190,8 @@ public function test_redirect_when_server_side_and_not_applicable() {
190190
add_filter( 'amp_mobile_client_side_redirection', '__return_false' );
191191
add_filter( 'amp_pre_is_mobile', '__return_false' );
192192

193-
$this->go_to( amp_add_paired_endpoint( '/' ) );
193+
$this->go_to( '/' );
194+
194195
$this->assertFalse( amp_is_request() );
195196
$this->assertFalse( $this->instance->is_mobile_request() );
196197

0 commit comments

Comments
 (0)