Skip to content

Commit

Permalink
Update amp-wp integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 26, 2021
1 parent b67b5b5 commit f1dadb5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/AMP/Optimization.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function get_optimizer() {
* @since 1.1.0
*
* @see AmpWPConfiguration::apply_filters()
* @link https://github.com/ampproject/amp-wp/blob/51266bf237184eae06e0d972cf423fa7bef61648/src/Optimizer/AmpWPConfiguration.php#L33-L99
* @link https://github.com/ampproject/amp-wp/blob/5405daa38e65f0ec16ffc920014d0110b03ee773/src/Optimizer/AmpWPConfiguration.php#L43-L78
*
* @return Configuration Optimizer configuration to use.
*/
Expand Down
1 change: 1 addition & 0 deletions scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
'vendor/ampproject/amp-wp/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php',
'vendor/ampproject/amp-wp/includes/sanitizers/trait-amp-noscript-fallback.php',
'vendor/ampproject/amp-wp/includes/templates/class-amp-content-sanitizer.php',
'vendor/ampproject/amp-wp/src/ValidationExemption.php',
]
)
->append( [ 'vendor/ampproject/amp-wp/composer.json' ] ),
Expand Down
4 changes: 4 additions & 0 deletions tests/phpunit/integration/tests/AMP/Optimization.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
use Google\Web_Stories_Dependencies\AmpProject\Optimizer\Transformer\AmpBoilerplate;
use Google\Web_Stories_Dependencies\AmpProject\Optimizer\Transformer\AmpBoilerplateErrorHandler;
use Google\Web_Stories_Dependencies\AmpProject\Optimizer\Transformer\AmpRuntimePreloads;
use Google\Web_Stories_Dependencies\AmpProject\Optimizer\Transformer\MinifyHtml;
use Google\Web_Stories_Dependencies\AmpProject\Optimizer\Transformer\OptimizeViewport;
use Google\Web_Stories_Dependencies\AmpProject\Optimizer\Transformer\ReorderHead;
use Google\Web_Stories_Dependencies\AmpProject\Optimizer\Transformer\GoogleFontsPreconnect;
use Google\Web_Stories\Tests\Integration\TestCase;
Expand Down Expand Up @@ -101,6 +103,8 @@ public function test_get_optimizer_configuration_no_ssr() {
AmpRuntimePreloads::class,
AmpBoilerplateErrorHandler::class,
GoogleFontsPreconnect::class,
MinifyHtml::class,
OptimizeViewport::class,
ReorderHead::class,
];

Expand Down
1 change: 1 addition & 0 deletions tests/phpunit/integration/tests/AMP/Sanitization.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ public function test_get_extension_sources() {
'amp-story-interactive' => 'v0/amp-story-interactive-0.1.js',
'amp-story-panning-media' => 'v0/amp-story-panning-media-0.1.js',
'amp-story-player' => 'v0/amp-story-player-0.1.js',
'amp-story-shopping' => 'v0/amp-story-shopping-0.1.js',
'amp-stream-gallery' => 'v0/amp-stream-gallery-0.1.js',
'amp-subscriptions' => 'v0/amp-subscriptions-0.1.js',
'amp-subscriptions-google' => 'v0/amp-subscriptions-google-0.1.js',
Expand Down

0 comments on commit f1dadb5

Please sign in to comment.