Skip to content

Commit

Permalink
Merge pull request ampproject#7020 from ampproject/upgrade/amp-toolbo…
Browse files Browse the repository at this point in the history
…x-php-0110

Upgrade amp-toolbox-php to 0.11.0
  • Loading branch information
westonruter authored Apr 1, 2022
1 parent 01cf0e4 commit 8960b9b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ext-json": "*",
"ext-libxml": "*",
"ext-spl": "*",
"ampproject/amp-toolbox": "0.10.0",
"ampproject/amp-toolbox": "0.11.0",
"cweagans/composer-patches": "~1.0",
"fasterimage/fasterimage": "1.5.0",
"sabberworm/php-css-parser": "8.4.0"
Expand Down
18 changes: 9 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tests/php/test-class-amp-core-block-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ public function test_ampify_gallery_block( $original_block_content, $expected_bl
$expected = preg_replace( '/ data-id="\d+"/', '', $expected );
$actual = preg_replace( '/ data-id="\d+"/', '', $actual );

// Remove classes added in Gutenberg 12.9.
$actual = preg_replace( '/wp-container-\w+ wp-block-gallery-\w+ /', '', $actual );

$this->assertEqualMarkup( $expected, $actual );
}

Expand Down

0 comments on commit 8960b9b

Please sign in to comment.