@@ -105,7 +105,6 @@ final class SwitchUserIntegrationTests: XCTestCase {
105105 MockUserRequests . setAddTagsAndLanguageResponse ( with: client, tags: tagsUserA, language: " lang_a " )
106106 MockUserRequests . setAddAliasesResponse ( with: client, aliases: [ " alias_a " : " id_a " ] )
107107 MockUserRequests . setAddEmailResponse ( with
: client
, email
: " [email protected] " ) 108- MockUserRequests . setTransferSubscriptionResponse ( with: client, externalId: userA_EUID)
109108 // Returns mocked user data to test hydration
110109 MockUserRequests . setDefaultFetchUserResponseForHydration ( with: client, externalId: userA_EUID)
111110
@@ -160,7 +159,6 @@ final class SwitchUserIntegrationTests: XCTestCase {
160159 contains
: [ " subscription " : [ " token " : " [email protected] " ] ] ) 161160 )
162161 XCTAssertTrue ( client. hasExecutedRequestOfType ( OSRequestFetchUser . self) )
163- XCTAssertTrue ( client. hasExecutedRequestOfType ( OSRequestTransferSubscription . self) )
164162
165163 // 3. Asserts for User A - local data is updated via hydration
166164 XCTAssertEqual ( " remote_language " , OneSignalUserManagerImpl . sharedInstance. user. propertiesModel. language)
@@ -262,15 +260,15 @@ final class SwitchUserIntegrationTests: XCTestCase {
262260
263261 // 2. Asserts for User A
264262 XCTAssertTrue ( client. onlyOneRequest ( // Tag + Language
265- contains: " apps/test-app-id/users/by/external_id / \( userA_EUID ) " ,
263+ contains: " apps/test-app-id/users/by/onesignal_id / \( userA_OSID ) " ,
266264 contains: [ " properties " : [ " language " : " lang_a " , " tags " : tagsUserA] ] )
267265 )
268266 XCTAssertTrue ( client. onlyOneRequest ( // Alias
269- contains: " apps/test-app-id/users/by/external_id / \( userA_EUID ) /identity " ,
267+ contains: " apps/test-app-id/users/by/onesignal_id / \( userA_OSID ) /identity " ,
270268 contains: [ " identity " : [ " alias_a " : " id_a " ] ] )
271269 )
272270 XCTAssertTrue ( client. onlyOneRequest ( // Email
273- contains: " apps/test-app-id/users/by/external_id / \( userA_EUID ) /subscriptions " ,
271+ contains: " apps/test-app-id/users/by/onesignal_id / \( userA_OSID ) /subscriptions " ,
274272 contains
: [ " subscription " : [ " token " : " [email protected] " ] ] ) 275273 )
276274
@@ -388,15 +386,15 @@ final class SwitchUserIntegrationTests: XCTestCase {
388386
389387 // 2. Asserts for User A
390388 XCTAssertTrue ( client. onlyOneRequest ( // Tag + Language
391- contains: " apps/test-app-id/users/by/external_id / \( userA_EUID ) " ,
389+ contains: " apps/test-app-id/users/by/onesignal_id / \( userA_OSID ) " ,
392390 contains: [ " properties " : [ " language " : " lang_a " , " tags " : tagsUserA] ] )
393391 )
394392 XCTAssertTrue ( client. onlyOneRequest ( // Alias
395- contains: " apps/test-app-id/users/by/external_id / \( userA_EUID ) /identity " ,
393+ contains: " apps/test-app-id/users/by/onesignal_id / \( userA_OSID ) /identity " ,
396394 contains: [ " identity " : [ " alias_a " : " id_a " ] ] )
397395 )
398396 XCTAssertTrue ( client. onlyOneRequest ( // Email
399- contains: " apps/test-app-id/users/by/external_id / \( userA_EUID ) /subscriptions " ,
397+ contains: " apps/test-app-id/users/by/onesignal_id / \( userA_OSID ) /subscriptions " ,
400398 contains
: [ " subscription " : [ " token " : " [email protected] " ] ] ) 401399 )
402400
0 commit comments