@@ -177,7 +177,6 @@ - (void)testGetInstallationItem_WhenNoFIDAndNoIID_ThenFIDIsCreatedAndRegistered
177
177
// 5.5. Verify registered installation was saved.
178
178
OCMVerifyAll (self.mockInstallationsStore );
179
179
OCMVerifyAll (self.mockIIDStore );
180
- OCMVerifyAll (self.mockAPIService );
181
180
}
182
181
183
182
- (void )testGetInstallationItem_WhenThereIsIIDAndNoFIDNotDefaultApp_ThenIIDIsUsedAsFID {
@@ -334,17 +333,11 @@ - (void)testGetInstallationItem_WhenThereIsIIDAndNoFID_ThenFIDIsCreatedAndRegist
334
333
- (void )testGetInstallationItem_WhenCalledSeveralTimes_OnlyOneOperationIsPerformed {
335
334
// 1. Expect the installation to be requested from the store only once.
336
335
FIRInstallationsItem *storedInstallation1 =
337
- [FIRInstallationsItem createUnregisteredInstallationItem ];
336
+ [FIRInstallationsItem createRegisteredInstallationItem ];
338
337
FBLPromise<FIRInstallationsItem *> *pendingStorePromise = [FBLPromise pendingPromise ];
339
338
OCMExpect ([self .mockInstallationsStore installationForAppID: self .appID appName: self .appName])
340
339
.andReturn (pendingStorePromise);
341
340
342
- // 2. Expect Create FID API request to be sent once.
343
- FBLPromise<FIRInstallationsItem *> *registrationErrorPromise = [FBLPromise pendingPromise ];
344
- [registrationErrorPromise reject: [FIRInstallationsErrorUtil APIErrorWithHTTPCode: 400 ]];
345
- OCMExpect ([self .mockAPIService registerInstallation: storedInstallation1])
346
- .andReturn (registrationErrorPromise);
347
-
348
341
// 3. Request installation n times
349
342
NSInteger requestCount = 10 ;
350
343
NSMutableArray *installationPromises = [NSMutableArray arrayWithCapacity: requestCount];
0 commit comments