aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm')
-rw-r--r--Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm15
1 files changed, 6 insertions, 9 deletions
diff --git a/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm b/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
index 3f2d64b..5340873 100644
--- a/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
+++ b/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
@@ -147,9 +147,8 @@
FIRDocumentReference *docA = [collection documentWithPath:@"a"];
FIRDocumentReference *docB = [collection documentWithPath:@"b"];
FSTEventAccumulator *accumulator = [FSTEventAccumulator accumulatorForTest:self];
- [collection addSnapshotListenerWithOptions:[[FIRQueryListenOptions options]
- includeQueryMetadataChanges:YES]
- listener:accumulator.valueEventHandler];
+ [collection addSnapshotListenerWithIncludeMetadataChanges:YES
+ listener:accumulator.valueEventHandler];
FIRQuerySnapshot *initialSnap = [accumulator awaitEventWithName:@"initial event"];
XCTAssertEqual(initialSnap.count, 0);
@@ -177,9 +176,8 @@
FIRDocumentReference *docA = [collection documentWithPath:@"a"];
FIRDocumentReference *docB = [collection documentWithPath:@"b"];
FSTEventAccumulator *accumulator = [FSTEventAccumulator accumulatorForTest:self];
- [collection addSnapshotListenerWithOptions:[[FIRQueryListenOptions options]
- includeQueryMetadataChanges:YES]
- listener:accumulator.valueEventHandler];
+ [collection addSnapshotListenerWithIncludeMetadataChanges:YES
+ listener:accumulator.valueEventHandler];
FIRQuerySnapshot *initialSnap = [accumulator awaitEventWithName:@"initial event"];
XCTAssertEqual(initialSnap.count, 0);
@@ -211,9 +209,8 @@
FIRDocumentReference *docA = [collection documentWithPath:@"a"];
FIRDocumentReference *docB = [collection documentWithPath:@"b"];
FSTEventAccumulator *accumulator = [FSTEventAccumulator accumulatorForTest:self];
- [collection addSnapshotListenerWithOptions:[[FIRQueryListenOptions options]
- includeQueryMetadataChanges:YES]
- listener:accumulator.valueEventHandler];
+ [collection addSnapshotListenerWithIncludeMetadataChanges:YES
+ listener:accumulator.valueEventHandler];
FIRQuerySnapshot *initialSnap = [accumulator awaitEventWithName:@"initial event"];
XCTAssertEqual(initialSnap.count, 0);