@@ -283,59 +283,6 @@ - (void)testErrorForSubspecConfigurationFailure {
283
283
XCTAssert ([error.description containsString: @" Configuration failed for" ]);
284
284
}
285
285
286
- - (void )testGetTokenWithCallback {
287
- [FIRApp configure ];
288
- FIRApp *app = [FIRApp defaultApp ];
289
-
290
- __block BOOL getTokenImplementationWasCalled = NO ;
291
- __block BOOL getTokenCallbackWasCalled = NO ;
292
- __block BOOL passedRefreshValue = NO ;
293
-
294
- [app getTokenForcingRefresh: YES
295
- withCallback: ^(NSString *_Nullable token, NSError *_Nullable error) {
296
- getTokenCallbackWasCalled = YES ;
297
- }];
298
-
299
- XCTAssert (getTokenCallbackWasCalled,
300
- @" The callback should be invoked by the base implementation when no block for "
301
- " 'getTokenImplementation' has been specified." );
302
-
303
- getTokenCallbackWasCalled = NO ;
304
-
305
- app.getTokenImplementation = ^(BOOL refresh, FIRTokenCallback callback) {
306
- getTokenImplementationWasCalled = YES ;
307
- passedRefreshValue = refresh;
308
- callback (nil , nil );
309
- };
310
- [app getTokenForcingRefresh: YES
311
- withCallback: ^(NSString *_Nullable token, NSError *_Nullable error) {
312
- getTokenCallbackWasCalled = YES ;
313
- }];
314
-
315
- XCTAssert (getTokenImplementationWasCalled,
316
- @" The 'getTokenImplementation' block was never called." );
317
- XCTAssert (passedRefreshValue,
318
- @" The value for the 'refresh' parameter wasn't passed to the 'getTokenImplementation' "
319
- " block correctly." );
320
- XCTAssert (getTokenCallbackWasCalled,
321
- @" The 'getTokenImplementation' should have invoked the callback. This could be an "
322
- " error in this test, or the callback parameter may not have been passed to the "
323
- " implementation correctly." );
324
-
325
- getTokenImplementationWasCalled = NO ;
326
- getTokenCallbackWasCalled = NO ;
327
- passedRefreshValue = NO ;
328
-
329
- [app getTokenForcingRefresh: NO
330
- withCallback: ^(NSString *_Nullable token, NSError *_Nullable error) {
331
- getTokenCallbackWasCalled = YES ;
332
- }];
333
-
334
- XCTAssertFalse (passedRefreshValue,
335
- @" The value for the 'refresh' parameter wasn't passed to the "
336
- " 'getTokenImplementation' block correctly." );
337
- }
338
-
339
286
- (void )testModifyingOptionsThrows {
340
287
[FIRApp configure ];
341
288
FIROptions *options = [[FIRApp defaultApp ] options ];
@@ -754,16 +701,6 @@ - (void)testAnalyticsNotSetByGlobalDataCollectionSwitch {
754
701
755
702
#pragma mark - Internal Methods
756
703
757
- // TODO: Remove this test once the `getUIDImplementation` block doesn't need to be set in Core.
758
- - (void )testAuthGetUID {
759
- [FIRApp configure ];
760
-
761
- [FIRApp defaultApp ].getUIDImplementation = ^NSString * {
762
- return @" highlander" ;
763
- };
764
- XCTAssertEqual ([[FIRApp defaultApp ] getUID ], @" highlander" );
765
- }
766
-
767
704
- (void )testIsAppConfigured {
768
705
// Ensure it's false before anything is configured.
769
706
XCTAssertFalse ([FIRApp isDefaultAppConfigured ]);
0 commit comments