File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
iOS_SDK/OneSignalSDK/OneSignalUserTests Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ - (void)testSendPurchases {
33
33
34
34
MockOneSignalClient* client = [MockOneSignalClient new ];
35
35
36
+ // 0. Purchases will be dropped if there is no user instance.
37
+ [OneSignalUserManagerImpl.sharedInstance start ];
38
+
36
39
// 1. Set up mock responses for the anonymous user
37
40
[MockUserRequests setDefaultCreateAnonUserResponsesWith: client];
38
41
[OneSignalCoreImpl setSharedClient: client];
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ final class OneSignalUserTests: XCTestCase {
74
74
func testBasicCombiningUserUpdateDeltas_resultsInOneRequest( ) throws {
75
75
/* Setup */
76
76
77
+ OneSignalUserManagerImpl . sharedInstance. start ( )
78
+
77
79
let client = MockOneSignalClient ( )
78
80
MockUserRequests . setDefaultCreateAnonUserResponses ( with: client)
79
81
OneSignalCoreImpl . setSharedClient ( client)
You can’t perform that action at this time.
0 commit comments