File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,17 @@ public function testGetResumeToken()
55
55
$ this ->insertDocument (['x ' => 2 ]);
56
56
57
57
$ changeStream ->next ();
58
+ $ this ->assertTrue ($ changeStream ->valid ());
58
59
$ this ->assertSameDocument ($ changeStream ->current ()->_id , $ changeStream ->getResumeToken ());
59
60
60
61
$ changeStream ->next ();
62
+ $ this ->assertTrue ($ changeStream ->valid ());
61
63
$ this ->assertSameDocument ($ changeStream ->current ()->_id , $ changeStream ->getResumeToken ());
62
64
63
65
$ this ->insertDocument (['x ' => 3 ]);
64
66
65
67
$ changeStream ->next ();
68
+ $ this ->assertTrue ($ changeStream ->valid ());
66
69
$ this ->assertSameDocument ($ changeStream ->current ()->_id , $ changeStream ->getResumeToken ());
67
70
}
68
71
@@ -116,6 +119,7 @@ function (array $event) use (&$events) {
116
119
$ postBatchResumeToken = $ this ->getPostBatchResumeTokenFromReply ($ events [0 ]['succeeded ' ]->getReply ());
117
120
118
121
$ changeStream ->next ();
122
+ $ this ->assertTrue ($ changeStream ->valid ());
119
123
$ this ->assertSameDocument ($ changeStream ->current ()->_id , $ changeStream ->getResumeToken ());
120
124
121
125
$ changeStream ->next ();
You can’t perform that action at this time.
0 commit comments