@@ -1114,20 +1114,8 @@ class AuthRepositoryTests: BitwardenTestCase { // swiftlint:disable:this type_bo
1114
1114
XCTAssertFalse ( value)
1115
1115
}
1116
1116
1117
- /// `isUserManagedByOrganization` returns false when the feature flag is off.
1118
- func test_isUserManagedByOrganization_true_featureFlagOff( ) async throws {
1119
- stateService. accounts = [ . fixture( profile: . fixture( userId: " 1 " ) ) ]
1120
- try await stateService. setActiveAccount ( userId: " 1 " )
1121
- organizationService. fetchAllOrganizationsResult =
1122
- . success( [ . fixture( id: " One " , userIsManagedByOrganization: true ) ] )
1123
-
1124
- let value = try await subject. isUserManagedByOrganization ( )
1125
- XCTAssertFalse ( value)
1126
- }
1127
-
1128
1117
/// `isUserManagedByOrganization` returns false when the user isn't managed by an organization.
1129
- func test_isUserManagedByOrganization_false_featureFlagON( ) async throws {
1130
- configService. featureFlagsBool [ . accountDeprovisioning] = true
1118
+ func test_isUserManagedByOrganization_false( ) async throws {
1131
1119
stateService. accounts = [ . fixture( profile: . fixture( userId: " 1 " ) ) ]
1132
1120
try await stateService. setActiveAccount ( userId: " 1 " )
1133
1121
organizationService. fetchAllOrganizationsResult = . success( [ . fixture( id: " One " ) ] )
@@ -1137,8 +1125,7 @@ class AuthRepositoryTests: BitwardenTestCase { // swiftlint:disable:this type_bo
1137
1125
}
1138
1126
1139
1127
/// `isUserManagedByOrganization` returns false when the user doesn't belong to an organization.
1140
- func test_isUserManagedByOrganization_noOrgs_featureFlagON( ) async throws {
1141
- configService. featureFlagsBool [ . accountDeprovisioning] = true
1128
+ func test_isUserManagedByOrganization_noOrgs( ) async throws {
1142
1129
stateService. accounts = [ . fixture( profile: . fixture( userId: " 1 " ) ) ]
1143
1130
try await stateService. setActiveAccount ( userId: " 1 " )
1144
1131
organizationService. fetchAllOrganizationsResult = . success( [ ] )
@@ -1148,8 +1135,7 @@ class AuthRepositoryTests: BitwardenTestCase { // swiftlint:disable:this type_bo
1148
1135
}
1149
1136
1150
1137
/// `isUserManagedByOrganization` returns true if the user is managed by an organization.
1151
- func test_isUserManagedByOrganization_true_featureFlagON( ) async throws {
1152
- configService. featureFlagsBool [ . accountDeprovisioning] = true
1138
+ func test_isUserManagedByOrganization_true( ) async throws {
1153
1139
stateService. accounts = [ . fixture( profile: . fixture( userId: " 1 " ) ) ]
1154
1140
try await stateService. setActiveAccount ( userId: " 1 " )
1155
1141
organizationService. fetchAllOrganizationsResult =
@@ -1160,8 +1146,7 @@ class AuthRepositoryTests: BitwardenTestCase { // swiftlint:disable:this type_bo
1160
1146
}
1161
1147
1162
1148
/// `isUserManagedByOrganization` returns true if the user is managed by at least one organization.
1163
- func test_isUserManagedByOrganization_true_multipleOrgs_featureON( ) async throws {
1164
- configService. featureFlagsBool [ . accountDeprovisioning] = true
1149
+ func test_isUserManagedByOrganization_true_multipleOrgs( ) async throws {
1165
1150
stateService. accounts = [ . fixture( profile: . fixture( userId: " 1 " ) ) ]
1166
1151
try await stateService. setActiveAccount ( userId: " 1 " )
1167
1152
organizationService. fetchAllOrganizationsResult =
0 commit comments