Skip to content

Commit

Permalink
Revert "Test that the custom style for twentytwentyone is added"
Browse files Browse the repository at this point in the history
This reverts commit d63c282
  • Loading branch information
pierlon committed Dec 12, 2020
1 parent 0c92979 commit 424ddda
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/php/src/MobileRedirectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,18 +438,6 @@ public function test_add_mobile_version_switcher_styles() {
$output = ob_get_clean();
$this->assertStringStartsWith( '<style>', $output );
$this->assertStringContains( '#amp-mobile-version-switcher', $output );
$this->assertStringNotContains( 'body.lock-scrolling > #amp-mobile-version-switcher', $output );

add_filter(
'template',
static function () {
return 'twentytwentyone';
}
);
ob_start();
$this->instance->add_mobile_version_switcher_styles();
$output = ob_get_clean();
$this->assertStringContains( 'body.lock-scrolling > #amp-mobile-version-switcher', $output );

add_filter( 'amp_mobile_version_switcher_styles_used', '__return_false' );
ob_start();
Expand Down

0 comments on commit 424ddda

Please sign in to comment.