aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm
diff options
context:
space:
mode:
authorGravatar Michael Lehenbauer <mikelehen@gmail.com>2018-04-17 15:55:29 -0700
committerGravatar GitHub <noreply@github.com>2018-04-17 15:55:29 -0700
commite36cc9610b11dfd2581ba5e3fda1917e0d5e697a (patch)
tree1a2861ce32463a225f1960c20e2f25b195d39183 /Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm
parent2f86a297446b7b2e4832bc2868fe63d54211144f (diff)
Integration tests, changelog, and minor fixes for array transforms. (#1108)
Diffstat (limited to 'Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm')
-rw-r--r--Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm7
1 files changed, 7 insertions, 0 deletions
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."]];