@@ -44,7 +44,7 @@ - (void)testRelevantBundles_mainIsFirst {
44
44
// once the use-case is understood.
45
45
46
46
- (void )testFindOptionsDictionaryPath {
47
- [ OCMStub ([self .mockBundle pathForResource: kResourceName ofType: kFileType ]) andReturn: kResultPath ] ;
47
+ OCMStub ([self .mockBundle pathForResource: kResourceName ofType: kFileType ]). andReturn ( kResultPath ) ;
48
48
XCTAssertEqualObjects ([FIRBundleUtil optionsDictionaryPathWithResourceName: kResourceName
49
49
andFileType: kFileType
50
50
inBundles: @[ self .mockBundle ]],
@@ -59,7 +59,7 @@ - (void)testFindOptionsDictionaryPath_notFound {
59
59
60
60
- (void )testFindOptionsDictionaryPath_secondBundle {
61
61
NSBundle *mockBundleEmpty = OCMClassMock ([NSBundle class ]);
62
- [ OCMStub ([self .mockBundle pathForResource: kResourceName ofType: kFileType ]) andReturn: kResultPath ] ;
62
+ OCMStub ([self .mockBundle pathForResource: kResourceName ofType: kFileType ]). andReturn ( kResultPath ) ;
63
63
64
64
NSArray *bundles = @[ mockBundleEmpty, self .mockBundle ];
65
65
XCTAssertEqualObjects ([FIRBundleUtil optionsDictionaryPathWithResourceName: kResourceName
@@ -70,12 +70,12 @@ - (void)testFindOptionsDictionaryPath_secondBundle {
70
70
71
71
- (void )testBundleIdentifierExistsInBundles {
72
72
NSString *bundleID = @" com.google.test" ;
73
- [ OCMStub ([self .mockBundle bundleIdentifier ]) andReturn: bundleID] ;
73
+ OCMStub ([self .mockBundle bundleIdentifier ]). andReturn ( bundleID) ;
74
74
XCTAssertTrue ([FIRBundleUtil hasBundleIdentifierPrefix: bundleID inBundles: @[ self .mockBundle ]]);
75
75
}
76
76
77
77
- (void )testBundleIdentifierExistsInBundles_notExist {
78
- [ OCMStub ([self .mockBundle bundleIdentifier ]) andReturn: @" com.google.test" ] ;
78
+ OCMStub ([self .mockBundle bundleIdentifier ]). andReturn ( @" com.google.test" ) ;
79
79
XCTAssertFalse ([FIRBundleUtil hasBundleIdentifierPrefix: @" not-exist"
80
80
inBundles: @[ self .mockBundle ]]);
81
81
}
@@ -89,7 +89,7 @@ - (void)testBundleIdentifierHasPrefixInBundlesForExtension {
89
89
[[[environmentUtilsMock stub ] andReturnValue: @(YES )] isAppExtension ];
90
90
91
91
// Mock bundle should have what app extension has, the extension bundle ID.
92
- [ OCMStub ([self .mockBundle bundleIdentifier ]) andReturn: @" com.google.test.someextension" ] ;
92
+ OCMStub ([self .mockBundle bundleIdentifier ]). andReturn ( @" com.google.test.someextension" ) ;
93
93
XCTAssertTrue ([FIRBundleUtil hasBundleIdentifierPrefix: @" com.google.test"
94
94
inBundles: @[ self .mockBundle ]]);
95
95
@@ -101,7 +101,7 @@ - (void)testBundleIdentifierExistsInBundlesForExtensions_exactMatch {
101
101
[[[environmentUtilsMock stub ] andReturnValue: @(YES )] isAppExtension ];
102
102
103
103
// Mock bundle should have what app extension has, the extension bundle ID.
104
- [ OCMStub ([self .mockBundle bundleIdentifier ]) andReturn: @" com.google.test.someextension" ] ;
104
+ OCMStub ([self .mockBundle bundleIdentifier ]). andReturn ( @" com.google.test.someextension" ) ;
105
105
XCTAssertTrue ([FIRBundleUtil hasBundleIdentifierPrefix: @" com.google.test.someextension"
106
106
inBundles: @[ self .mockBundle ]]);
107
107
@@ -112,19 +112,19 @@ - (void)testBundleIdentifierHasPrefixInBundlesNotValidExtension {
112
112
id environmentUtilsMock = [OCMockObject mockForClass: [GULAppEnvironmentUtil class ]];
113
113
[[[environmentUtilsMock stub ] andReturnValue: @(YES )] isAppExtension ];
114
114
115
- [ OCMStub ([self .mockBundle bundleIdentifier ]) andReturn: @" com.google.test.someextension.some" ] ;
115
+ OCMStub ([self .mockBundle bundleIdentifier ]). andReturn ( @" com.google.test.someextension.some" ) ;
116
116
XCTAssertFalse ([FIRBundleUtil hasBundleIdentifierPrefix: @" com.google.test"
117
117
inBundles: @[ self .mockBundle ]]);
118
118
119
- [ OCMStub ([self .mockBundle bundleIdentifier ]) andReturn: @" com.google.testsomeextension" ] ;
119
+ OCMStub ([self .mockBundle bundleIdentifier ]). andReturn ( @" com.google.testsomeextension" ) ;
120
120
XCTAssertFalse ([FIRBundleUtil hasBundleIdentifierPrefix: @" com.google.test"
121
121
inBundles: @[ self .mockBundle ]]);
122
122
123
- [ OCMStub ([self .mockBundle bundleIdentifier ]) andReturn: @" com.google.testsomeextension.some" ] ;
123
+ OCMStub ([self .mockBundle bundleIdentifier ]). andReturn ( @" com.google.testsomeextension.some" ) ;
124
124
XCTAssertFalse ([FIRBundleUtil hasBundleIdentifierPrefix: @" com.google.test"
125
125
inBundles: @[ self .mockBundle ]]);
126
126
127
- [ OCMStub ([self .mockBundle bundleIdentifier ]) andReturn: @" not-exist" ] ;
127
+ OCMStub ([self .mockBundle bundleIdentifier ]). andReturn ( @" not-exist" ) ;
128
128
XCTAssertFalse ([FIRBundleUtil hasBundleIdentifierPrefix: @" com.google.test"
129
129
inBundles: @[ self .mockBundle ]]);
130
130
0 commit comments