Skip to content

Commit

Permalink
Remove block-templates theme support to fix test as workaround for #6115
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Apr 28, 2021
1 parent ce89354 commit 7f1547d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/php/test-class-amp-theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,8 @@ public function test_filter_customize_partial_render() {
* @covers ::amp_render_scripts()
*/
public function test_prepare_response() {
remove_theme_support( 'block-templates' ); // Needed to prevent gutenberg_the_skip_link() from outputting anything.

$this->set_template_mode( AMP_Theme_Support::STANDARD_MODE_SLUG );
wp_set_current_user( self::factory()->user->create( [ 'role' => 'administrator' ] ) );

Expand Down

0 comments on commit 7f1547d

Please sign in to comment.