diff options
author | Michael Lehenbauer <mikelehen@gmail.com> | 2018-04-17 15:55:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 15:55:29 -0700 |
commit | e36cc9610b11dfd2581ba5e3fda1917e0d5e697a (patch) | |
tree | 1a2861ce32463a225f1960c20e2f25b195d39183 /Firestore/Example/Tests/Util | |
parent | 2f86a297446b7b2e4832bc2868fe63d54211144f (diff) |
Integration tests, changelog, and minor fixes for array transforms. (#1108)
Diffstat (limited to 'Firestore/Example/Tests/Util')
-rw-r--r-- | Firestore/Example/Tests/Util/FSTIntegrationTestCase.h | 2 | ||||
-rw-r--r-- | Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Firestore/Example/Tests/Util/FSTIntegrationTestCase.h b/Firestore/Example/Tests/Util/FSTIntegrationTestCase.h index 9c80799..e27491b 100644 --- a/Firestore/Example/Tests/Util/FSTIntegrationTestCase.h +++ b/Firestore/Example/Tests/Util/FSTIntegrationTestCase.h @@ -82,6 +82,8 @@ extern "C" { - (void)deleteDocumentRef:(FIRDocumentReference *)ref; +- (void)mergeDocumentRef:(FIRDocumentReference *)ref data:(NSDictionary<NSString *, id> *)data; + - (void)disableNetwork; - (void)enableNetwork; diff --git a/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm b/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm index 2b1f9d0..9bfdb3b 100644 --- a/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm +++ b/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm @@ -276,6 +276,13 @@ NS_ASSUME_NONNULL_BEGIN [self awaitExpectations]; } +- (void)mergeDocumentRef:(FIRDocumentReference *)ref data:(NSDictionary<NSString *, id> *)data { + [ref setData:data + merge:YES + completion:[self completionForExpectationWithName:@"setDataWithMerge"]]; + [self awaitExpectations]; +} + - (void)disableNetwork { [self.db.client disableNetworkWithCompletion:[self completionForExpectationWithName:@"Disable Network."]]; |