diff --git a/tests/php/test-class-amp-customizer-design-settings.php b/tests/php/test-class-amp-customizer-design-settings.php index 64d48551195..90f5018b340 100644 --- a/tests/php/test-class-amp-customizer-design-settings.php +++ b/tests/php/test-class-amp-customizer-design-settings.php @@ -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() );