Skip to content

Commit 0173cc0

Browse files
authored
[Auth] Update OCMock 2 syntax to v3 syntax. (#11031)
1 parent cec5be5 commit 0173cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAuth/Tests/Unit/FIRAuthTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,7 @@ - (void)testAppOpenURL_AuthPresenterCanHandleURL {
24702470
// 'application:openURL:options:' is only available on iOS 9.0 or newer.
24712471
NSURL *url = [NSURL URLWithString:@"https://localhost"];
24722472

2473-
[OCMExpect([self.mockAuthURLPresenter canHandleURL:url]) andReturnValue:@(YES)];
2473+
OCMExpect([self.mockAuthURLPresenter canHandleURL:url]).andReturn(YES);
24742474

24752475
XCTAssertTrue([self.fakeApplicationDelegate
24762476
application:[GULAppDelegateSwizzler sharedApplication]
@@ -2484,7 +2484,7 @@ - (void)testAppOpenURL_AuthPresenterCanHandleURL {
24842484
- (void)testAppOpenURLWithSourceApplication_AuthPresenterCanHandleURL {
24852485
NSURL *url = [NSURL URLWithString:@"https://localhost"];
24862486

2487-
[OCMExpect([self.mockAuthURLPresenter canHandleURL:url]) andReturnValue:@(YES)];
2487+
OCMExpect([self.mockAuthURLPresenter canHandleURL:url]).andReturn(YES);
24882488

24892489
#pragma clang diagnostic push
24902490
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

0 commit comments

Comments
 (0)