From 6bf06710e8f69fab6affb8e2fbb96f7615abac07 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Mon, 2 Sep 2019 10:28:39 -0400 Subject: [PATCH] Assert initial resume token in resumeAfter test ChangeStream::getResumeToken() did not exist at the time this test was written; however, we do this assertion in testStartAfterOption(). --- tests/Operation/WatchFunctionalTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Operation/WatchFunctionalTest.php b/tests/Operation/WatchFunctionalTest.php index 251ca0f6f..43711251c 100644 --- a/tests/Operation/WatchFunctionalTest.php +++ b/tests/Operation/WatchFunctionalTest.php @@ -980,6 +980,7 @@ public function testResumeAfterOption() $options = $this->defaultOptions + ['resumeAfter' => $resumeToken]; $operation = new Watch($this->manager, $this->getDatabaseName(), $this->getCollectionName(), [], $options); $changeStream = $operation->execute($this->getPrimaryServer()); + $this->assertSame($resumeToken, $changeStream->getResumeToken()); $changeStream->rewind(); $this->assertTrue($changeStream->valid());