@@ -267,59 +267,6 @@ - (void)testErrorForSubspecConfigurationFailure {
267267 XCTAssert ([error.description containsString: @" Configuration failed for" ]);
268268}
269269
270- - (void )testGetTokenWithCallback {
271- [FIRApp configure ];
272- FIRApp *app = [FIRApp defaultApp ];
273-
274- __block BOOL getTokenImplementationWasCalled = NO ;
275- __block BOOL getTokenCallbackWasCalled = NO ;
276- __block BOOL passedRefreshValue = NO ;
277-
278- [app getTokenForcingRefresh: YES
279- withCallback: ^(NSString *_Nullable token, NSError *_Nullable error) {
280- getTokenCallbackWasCalled = YES ;
281- }];
282-
283- XCTAssert (getTokenCallbackWasCalled,
284- @" The callback should be invoked by the base implementation when no block for "
285- " 'getTokenImplementation' has been specified." );
286-
287- getTokenCallbackWasCalled = NO ;
288-
289- app.getTokenImplementation = ^(BOOL refresh, FIRTokenCallback callback) {
290- getTokenImplementationWasCalled = YES ;
291- passedRefreshValue = refresh;
292- callback (nil , nil );
293- };
294- [app getTokenForcingRefresh: YES
295- withCallback: ^(NSString *_Nullable token, NSError *_Nullable error) {
296- getTokenCallbackWasCalled = YES ;
297- }];
298-
299- XCTAssert (getTokenImplementationWasCalled,
300- @" The 'getTokenImplementation' block was never called." );
301- XCTAssert (passedRefreshValue,
302- @" The value for the 'refresh' parameter wasn't passed to the 'getTokenImplementation' "
303- " block correctly." );
304- XCTAssert (getTokenCallbackWasCalled,
305- @" The 'getTokenImplementation' should have invoked the callback. This could be an "
306- " error in this test, or the callback parameter may not have been passed to the "
307- " implementation correctly." );
308-
309- getTokenImplementationWasCalled = NO ;
310- getTokenCallbackWasCalled = NO ;
311- passedRefreshValue = NO ;
312-
313- [app getTokenForcingRefresh: NO
314- withCallback: ^(NSString *_Nullable token, NSError *_Nullable error) {
315- getTokenCallbackWasCalled = YES ;
316- }];
317-
318- XCTAssertFalse (passedRefreshValue,
319- @" The value for the 'refresh' parameter wasn't passed to the "
320- " 'getTokenImplementation' block correctly." );
321- }
322-
323270- (void )testOptionsLocking {
324271 FIROptions *options =
325272 [[FIROptions alloc ] initWithGoogleAppID: kGoogleAppID GCMSenderID: kGCMSenderID ];
@@ -754,16 +701,6 @@ - (void)testAnalyticsNotSetByGlobalDataCollectionSwitch {
754701
755702#pragma mark - Internal Methods
756703
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-
767704- (void )testIsDefaultAppConfigured {
768705 // Ensure it's false before anything is configured.
769706 XCTAssertFalse ([FIRApp isDefaultAppConfigured ]);
0 commit comments