@@ -656,7 +656,6 @@ struct POSTabEligibilityCheckerTests {
656
656
] )
657
657
func refreshEligibility_returns_eligible_when_plugin_refreshed_with_valid_version_below_10( ineligibleReason: POSIneligibleReason ) async throws {
658
658
// Given
659
- let mockSystemStatusService = MockPOSSystemStatusService ( )
660
659
let wcPlugin = createWooCommercePlugin ( version: " 9.9.9 " ) // Valid version below feature switch threshold
661
660
mockSystemStatusService. resultToReturn = . success( POSPluginAndFeatureInfo ( wcPlugin: wcPlugin, featureValue: nil ) )
662
661
@@ -679,7 +678,6 @@ struct POSTabEligibilityCheckerTests {
679
678
] )
680
679
fileprivate func refreshEligibility_returns_eligible_when_plugin_with_version_10_and_feature_enabled( ineligibleReason: POSIneligibleReason ) async throws {
681
680
// Given
682
- let mockSystemStatusService = MockPOSSystemStatusService ( )
683
681
let wcPlugin = createWooCommercePlugin ( version: " 10.0.0 " )
684
682
mockSystemStatusService. resultToReturn = . success( POSPluginAndFeatureInfo ( wcPlugin: wcPlugin, featureValue: true ) )
685
683
@@ -702,7 +700,6 @@ struct POSTabEligibilityCheckerTests {
702
700
] )
703
701
fileprivate func refreshEligibility_returns_ineligible_when_plugin_not_found_in_system_status( ineligibleReason: POSIneligibleReason ) async throws {
704
702
// Given
705
- let mockSystemStatusService = MockPOSSystemStatusService ( )
706
703
mockSystemStatusService. resultToReturn = . success( POSPluginAndFeatureInfo ( wcPlugin: nil , featureValue: nil ) )
707
704
708
705
setupCountry ( country: . us, currency: . USD)
@@ -724,7 +721,6 @@ struct POSTabEligibilityCheckerTests {
724
721
] )
725
722
fileprivate func refreshEligibility_returns_ineligible_when_plugin_version_still_below_minimum( ineligibleReason: POSIneligibleReason ) async throws {
726
723
// Given
727
- let mockSystemStatusService = MockPOSSystemStatusService ( )
728
724
let wcPlugin = createWooCommercePlugin ( version: " 9.5.0 " ) // Still below minimum 9.6.0-beta
729
725
mockSystemStatusService. resultToReturn = . success( POSPluginAndFeatureInfo ( wcPlugin: wcPlugin, featureValue: nil ) )
730
726
@@ -747,7 +743,6 @@ struct POSTabEligibilityCheckerTests {
747
743
] )
748
744
fileprivate func refreshEligibility_returns_ineligible_when_feature_switch_still_disabled( ineligibleReason: POSIneligibleReason ) async throws {
749
745
// Given
750
- let mockSystemStatusService = MockPOSSystemStatusService ( )
751
746
let wcPlugin = createWooCommercePlugin ( version: " 10.0.0 " )
752
747
mockSystemStatusService. resultToReturn = . success( POSPluginAndFeatureInfo ( wcPlugin: wcPlugin, featureValue: nil ) )
753
748
@@ -770,7 +765,6 @@ struct POSTabEligibilityCheckerTests {
770
765
] )
771
766
fileprivate func refreshEligibility_returns_ineligible_when_system_status_request_fails( ineligibleReason: POSIneligibleReason ) async throws {
772
767
// Given
773
- let mockSystemStatusService = MockPOSSystemStatusService ( )
774
768
mockSystemStatusService. resultToReturn = . failure( NSError ( domain: " test " , code: 500 ) )
775
769
776
770
setupCountry ( country: . us, currency: . USD)
0 commit comments