Skip to content

Commit 93bf830

Browse files
Add additional validation, fix extension data sharing tests.
1 parent d0656a6 commit 93bf830

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Parse/ParseClientConfiguration.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ - (instancetype)initWithBlock:(void (^)(id<ParseMutableClientConfiguration>))con
4444

4545
configurationBlock(self);
4646

47+
PFConsistencyAssert(self.applicationId.length, @"`applicationId` should not be nil.");
48+
PFConsistencyAssert(self.clientKey.length, @"`clientKey` should not be nil.");
49+
4750
return self;
4851
}
4952

Tests/Unit/ParseClientConfigurationTests.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ - (void)testCopy {
107107
- (void)testExtensionDataSharing {
108108
ParseClientConfiguration *configuration = [ParseClientConfiguration emptyConfiguration];
109109

110+
#if !PF_TARGET_OS_OSX
110111
// Innaccessible bundle identifiers should throw
111112
XCTAssertThrows(configuration.applicationGroupIdentifier = @"someBundleIdentifier");
113+
#endif
112114

113115
// Accessible bundle identifiers should not throw
114116
_testHelper.swizzledGroupContainerDirectoryPath = YES;

0 commit comments

Comments
 (0)