aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/Integration/API/FIRValidationTests.mm
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-04-15 13:06:06 -0700
committerGravatar GitHub <noreply@github.com>2018-04-15 13:06:06 -0700
commit5368c9e22f9a6b427466e9422645d688953013c0 (patch)
tree96ce766691fb24ffc0382cac472945b2190ecabe /Firestore/Example/Tests/Integration/API/FIRValidationTests.mm
parent33b12f6c70729d56c6e6350d435559cec1c44c61 (diff)
Replace the `SetOptions` object with a simple boolean. (#1098)
Instead of calling `setData(["a": "b"], options: SetOptions.merge())` call `setData(["a": "b"], merge: true)`
Diffstat (limited to 'Firestore/Example/Tests/Integration/API/FIRValidationTests.mm')
-rw-r--r--Firestore/Example/Tests/Integration/API/FIRValidationTests.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Firestore/Example/Tests/Integration/API/FIRValidationTests.mm b/Firestore/Example/Tests/Integration/API/FIRValidationTests.mm
index 82c57c3..2c6a2a8 100644
--- a/Firestore/Example/Tests/Integration/API/FIRValidationTests.mm
+++ b/Firestore/Example/Tests/Integration/API/FIRValidationTests.mm
@@ -282,7 +282,7 @@
[self expectSet:@{@"foo" : [FIRFieldValue fieldValueForDelete]}
toFailWithReason:
@"FieldValue.delete() can only be used with updateData() and setData() with "
- @"SetOptions.merge() (found in field foo)"];
+ @"merge:true (found in field foo)"];
}
- (void)testUpdatesWithNestedFieldValueDeleteFail {
@@ -304,7 +304,7 @@
FIRDocumentReference *badRef = [db2 documentWithPath:@"foo/bar"];
FIRWriteBatch *batch = [db1 batch];
FSTAssertThrows([batch setData:data forDocument:badRef], reason);
- FSTAssertThrows([batch setData:data forDocument:badRef options:[FIRSetOptions merge]], reason);
+ FSTAssertThrows([batch setData:data forDocument:badRef merge:YES], reason);
FSTAssertThrows([batch updateData:data forDocument:badRef], reason);
FSTAssertThrows([batch deleteDocument:badRef], reason);
}
@@ -322,7 +322,7 @@
[db1 runTransactionWithBlock:^id(FIRTransaction *txn, NSError **pError) {
FSTAssertThrows([txn getDocument:badRef error:nil], reason);
FSTAssertThrows([txn setData:data forDocument:badRef], reason);
- FSTAssertThrows([txn setData:data forDocument:badRef options:[FIRSetOptions merge]], reason);
+ FSTAssertThrows([txn setData:data forDocument:badRef merge:YES], reason);
FSTAssertThrows([txn updateData:data forDocument:badRef], reason);
FSTAssertThrows([txn deleteDocument:badRef], reason);
return nil;