Skip to content

Commit 6bf0671

Browse files
authored
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().
1 parent e0a2b89 commit 6bf0671

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Operation/WatchFunctionalTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ public function testResumeAfterOption()
980980
$options = $this->defaultOptions + ['resumeAfter' => $resumeToken];
981981
$operation = new Watch($this->manager, $this->getDatabaseName(), $this->getCollectionName(), [], $options);
982982
$changeStream = $operation->execute($this->getPrimaryServer());
983+
$this->assertSame($resumeToken, $changeStream->getResumeToken());
983984

984985
$changeStream->rewind();
985986
$this->assertTrue($changeStream->valid());

0 commit comments

Comments
 (0)