aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm
diff options
context:
space:
mode:
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."]];