@@ -467,7 +467,7 @@ public function testDeleteDocumentWithDeleteByIdWithRevisionAndPolicyIsError()
467
467
468
468
$ revision = $ document ->getRevision ();
469
469
try {
470
- $ documentHandler ->removeById ($ this ->collection ->getId (), $ documentId , $ revision - 1000 , ['policy ' => 'error ' ]);
470
+ $ documentHandler ->removeById ($ this ->collection ->getId (), $ documentId , ' _UOarUR---- ' , ['policy ' => 'error ' ]);
471
471
} catch (ServerException $ e ) {
472
472
static ::assertTrue (true );
473
473
}
@@ -493,7 +493,7 @@ public function testDeleteDocumentWithDeleteByIdWithRevisionAndPolicyIsLast()
493
493
494
494
$ revision = $ document ->getRevision ();
495
495
496
- $ response = $ documentHandler ->removeById ($ this ->collection ->getId (), $ documentId , $ revision - 1000 , ['policy ' => 'last ' ]);
496
+ $ response = $ documentHandler ->removeById ($ this ->collection ->getId (), $ documentId , ' _UOarUR---- ' , ['policy ' => 'last ' ]);
497
497
static ::assertTrue (
498
498
$ response ,
499
499
'deleteById() should return true! (because policy is "last write wins") '
@@ -537,7 +537,7 @@ public function testCreateUpdateGetAndDeleteDocumentWithRevisionCheck()
537
537
// Set some new values on the attributes and include a fake revision in the _rev attribute
538
538
// This should result in a failure to update
539
539
$ document ->set ('someOtherAttribute ' , 'someOtherValue3 ' );
540
- $ document ->setRevision ($ resultingDocument -> getRevision () - 1000 );
540
+ $ document ->setRevision (' _UOarUR---- ' );
541
541
$ e = null ;
542
542
try {
543
543
$ documentHandler ->update ($ document , ['policy ' => 'error ' ]);
@@ -638,7 +638,7 @@ public function testMoreCreateUpdateGetAndDeleteDocumentWithRevisionCheck()
638
638
// This should result in a failure to update
639
639
$ document ->set ('someAttribute ' , 'someValue3 ' );
640
640
$ document ->set ('someOtherAttribute ' , 'someOtherValue3 ' );
641
- $ document ->set ('_rev ' , $ resultingDocument -> getRevision () - 1000 );
641
+ $ document ->set ('_rev ' , ' _UOarUR---- ' );
642
642
643
643
$ e = null ;
644
644
0 commit comments