Skip to content

Commit

Permalink
Remove unnecessary filter deregistration
Browse files Browse the repository at this point in the history
  • Loading branch information
waclawjacek committed Sep 20, 2024
1 parent de08672 commit 7ed27a2
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7ed27a2

Please sign in to comment.