Skip to content

Commit

Permalink
Remove needless triggering of amp_register_polyfills action in test
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Aug 23, 2021
1 parent 01505f9 commit 0ab4cb1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/php/src/Admin/PolyfillsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ public function test_registration() {

$this->instance->register();

/** This action is documented in includes/class-amp-theme-support.php */
do_action( 'amp_register_polyfills' );

// These should pass in WP < 5.6.
$this->assertTrue( wp_script_is( 'lodash', 'registered' ) );
$this->assertStringContainsString( '_.noConflict();', wp_scripts()->print_inline_script( 'lodash', 'after', false ) );
Expand Down

0 comments on commit 0ab4cb1

Please sign in to comment.