Skip to content

Commit 6b06d30

Browse files
authored
Fix test to account for gutenberg_render_layout_support_flag() (#6850)
1 parent de491cd commit 6b06d30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/php/validation/test-class-amp-validation-manager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,9 @@ public function test_add_block_source_comments( $content, $expected, $query ) {
13821382

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

1385+
// Remove class name injected by gutenberg_render_layout_support_flag().
1386+
$rendered_block = preg_replace( '/(?<= class=")wp-container-\w+ /', '', $rendered_block );
1387+
13851388
$expected = str_replace(
13861389
[
13871390
'{{post_id}}',

0 commit comments

Comments
 (0)