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 {
3333
3434 MockOneSignalClient* client = [MockOneSignalClient new ];
3535
36+ // 0. Purchases will be dropped if there is no user instance.
37+ [OneSignalUserManagerImpl.sharedInstance start ];
38+
3639 // 1. Set up mock responses for the anonymous user
3740 [MockUserRequests setDefaultCreateAnonUserResponsesWith: client];
3841 [OneSignalCoreImpl setSharedClient: client];
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ final class OneSignalUserTests: XCTestCase {
7474 func testBasicCombiningUserUpdateDeltas_resultsInOneRequest( ) throws {
7575 /* Setup */
7676
77+ OneSignalUserManagerImpl . sharedInstance. start ( )
78+
7779 let client = MockOneSignalClient ( )
7880 MockUserRequests . setDefaultCreateAnonUserResponses ( with: client)
7981 OneSignalCoreImpl . setSharedClient ( client)
You can’t perform that action at this time.
0 commit comments