Skip to content

Commit

Permalink
Fix test cases in Test_AMP_Validation_Manager::class after Gutenber…
Browse files Browse the repository at this point in the history
…g 15.4.0 release
  • Loading branch information
thelovekesh committed Mar 22, 2023
1 parent f01da9b commit 12bbe87
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 @@ -1393,6 +1393,9 @@ public function test_add_block_source_comments( $content, $expected, $query ) {

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

// Remove `wp-block-columns-is-layout-flex` class name injected by block editor layout styles.
$rendered_block = preg_replace( '/\s*(?<= class=")?wp-block-columns-is-layout-flex\s*/', '', $rendered_block );

// Remove `is-layout-flex` class name injected by block editor layout styles.
$rendered_block = preg_replace( '/\s*(?<= class=")?is-layout-flex\s*/', '', $rendered_block );

Expand Down

0 comments on commit 12bbe87

Please sign in to comment.