From 7ed27a2b16df40dabb7ee806a89128331c0cf392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wac=C5=82aw=20Jacek?= Date: Fri, 20 Sep 2024 23:24:27 +0200 Subject: [PATCH] Remove unnecessary filter deregistration --- ...t-class-wc-connect-compatibility-wcshipping-packages.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/php/classes/test-class-wc-connect-compatibility-wcshipping-packages.php b/tests/php/classes/test-class-wc-connect-compatibility-wcshipping-packages.php index 13be95af4..9a1bfb6be 100644 --- a/tests/php/classes/test-class-wc-connect-compatibility-wcshipping-packages.php +++ b/tests/php/classes/test-class-wc-connect-compatibility-wcshipping-packages.php @@ -92,12 +92,6 @@ public function setUp(): void { // Reset options. update_option( 'wc_connect_options', self::EXAMPLE_WC_CONNECT_OPTIONS ); update_option( 'wcshipping_options', self::EXAMPLE_WCSHIPPING_OPTIONS ); - - // Reset hooks. - remove_filter( 'option_wc_connect_options', array( WC_Connect_Compatibility_WCShipping_Packages::class, 'intercept_packages_read' ) ); - remove_filter( 'option_wc_connect_options', array( WC_Connect_Compatibility_WCShipping_Packages::class, 'intercept_predefined_packages_read' ) ); - remove_action( 'update_option_wc_connect_options', array( WC_Connect_Compatibility_WCShipping_Packages::class, 'intercept_packages_update' ) ); - remove_action( 'update_option_wc_connect_options', array( WC_Connect_Compatibility_WCShipping_Packages::class, 'intercept_predefined_packages_update' ) ); } public function test_it_enables_all_compatibility_features_if_wcshipping_is_active_and_settings_were_migrated_from_wcservices() {