Skip to content

Commit f65dc65

Browse files
committed
Fix facebook tests
1 parent 475e94a commit f65dc65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FirebaseFacebookAuthUI/Sources/FUIFacebookAuth.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ - (void)configureProvider {
318318
NSString *facebookDisplayName = [bundle objectForInfoDictionaryKey:kFacebookDisplayName];
319319

320320
if (facebookAppId == nil || facebookDisplayName == nil) {
321-
// Always use the app bundle to look up Facebook values.
322-
bundle = [NSBundle mainBundle];
323-
facebookAppId = [bundle objectForInfoDictionaryKey:kFacebookAppId];
324-
facebookDisplayName = [bundle objectForInfoDictionaryKey:kFacebookDisplayName];
321+
bundle = [FUIAuthUtils authUIBundle]; // triggered in tests
322+
facebookAppId = facebookAppId ?: [bundle objectForInfoDictionaryKey:kFacebookAppId];
323+
facebookDisplayName = facebookDisplayName ?:
324+
[bundle objectForInfoDictionaryKey:kFacebookDisplayName];
325325
}
326326

327327
if (!(facebookAppId && facebookDisplayName)) {

0 commit comments

Comments
 (0)