Skip to content

Commit 5debbdf

Browse files
authored
Merge pull request #7999 from ampproject/fix/test_add_block_source_comments
Fix test_add_block_source_comments after Gutenberg 20.5
2 parents 683ecd0 + e19583a commit 5debbdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,7 @@ public function test_add_block_source_comments( $content, $expected, $query ) {
14291429

14301430
// Remove unique layout ID.
14311431
$rendered_block = preg_replace( '/\s*(?<= class=")?has-\d+-columns-columns-layout-\d+\s*/', ' has-2-columns', $rendered_block );
1432+
$rendered_block = preg_replace( '/\s*(?<= class=")?has-\d+-columns-columns-is-layout-[0-9a-f]+\s*/', ' has-2-columns', $rendered_block );
14321433

14331434
// Remove layout class name and ID.
14341435
$rendered_block = str_replace(

0 commit comments

Comments
 (0)