Skip to content

Commit

Permalink
Use remove_all_filters instead of remove_all_actions for purity sake
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Dec 13, 2021
1 parent 6dbd043 commit 779104f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/test-class-amp-customizer-design-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static function () {
*/
public function test_is_amp_customizer_enabled_and_init( callable $set_up, $enabled ) {
remove_all_actions( 'amp_customizer_init' );
remove_all_actions( 'amp_customizer_get_settings' );
remove_all_filters( 'amp_customizer_get_settings' );

$set_up();
$this->assertEquals( $enabled, AMP_Customizer_Design_Settings::is_amp_customizer_enabled() );
Expand Down

0 comments on commit 779104f

Please sign in to comment.