Skip to content

Commit

Permalink
Fix test to account for gutenberg_render_layout_support_flag() (#6850)
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter authored Jan 20, 2022
1 parent de491cd commit 6b06d30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/php/validation/test-class-amp-validation-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,9 @@ public function test_add_block_source_comments( $content, $expected, $query ) {

$rendered_block = do_blocks( AMP_Validation_Manager::add_block_source_comments( $content ) );

// Remove class name injected by gutenberg_render_layout_support_flag().
$rendered_block = preg_replace( '/(?<= class=")wp-container-\w+ /', '', $rendered_block );

$expected = str_replace(
[
'{{post_id}}',
Expand Down

0 comments on commit 6b06d30

Please sign in to comment.