6
6
use MongoDB \Collection ;
7
7
use MongoDB \Operation \DatabaseCommand ;
8
8
9
- class ChangeStreamFunctionalTest extends FunctionalTestCase
9
+ class WatchFunctionalTest extends FunctionalTestCase
10
10
{
11
11
public function setUp ()
12
12
{
@@ -37,7 +37,7 @@ public function testResume()
37
37
'_id ' => $ changeStreamResult ->current ()->_id ,
38
38
'operationType ' => 'insert ' ,
39
39
'fullDocument ' => (object ) ['_id ' => $ result ->getInsertedId (), 'x ' => 2 ],
40
- 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'ChangeStreamFunctionalTest .e68b9f01 ' ],
40
+ 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'WatchFunctionalTest .e68b9f01 ' ],
41
41
'documentKey ' => (object ) ['_id ' => $ result ->getInsertedId ()]
42
42
]);
43
43
$ this ->assertEquals ($ changeStreamResult ->current (), $ expectedResult );
@@ -54,7 +54,7 @@ public function testResume()
54
54
'_id ' => $ changeStreamResult ->current ()->_id ,
55
55
'operationType ' => 'insert ' ,
56
56
'fullDocument ' => (object ) ['_id ' => $ result ->getInsertedId (), 'x ' => 3 ],
57
- 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'ChangeStreamFunctionalTest .e68b9f01 ' ],
57
+ 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'WatchFunctionalTest .e68b9f01 ' ],
58
58
'documentKey ' => (object ) ['_id ' => $ result ->getInsertedId ()]
59
59
]);
60
60
$ this ->assertEquals ($ changeStreamResult ->current (), $ expectedResult );
@@ -81,7 +81,7 @@ public function testNoChangeAfterResumeBeforeInsert()
81
81
'_id ' => $ changeStreamResult ->current ()->_id ,
82
82
'operationType ' => 'insert ' ,
83
83
'fullDocument ' => (object ) ['_id ' => $ result ->getInsertedId (), 'x ' => 2 ],
84
- 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'ChangeStreamFunctionalTest .4a554985 ' ],
84
+ 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'WatchFunctionalTest .4a554985 ' ],
85
85
'documentKey ' => (object ) ['_id ' => $ result ->getInsertedId ()]
86
86
]);
87
87
$ this ->assertEquals ($ changeStreamResult ->current (), $ expectedResult );
@@ -101,7 +101,7 @@ public function testNoChangeAfterResumeBeforeInsert()
101
101
'_id ' => $ changeStreamResult ->current ()->_id ,
102
102
'operationType ' => 'insert ' ,
103
103
'fullDocument ' => (object ) ['_id ' => $ result ->getInsertedId (), 'x ' => 3 ],
104
- 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'ChangeStreamFunctionalTest .4a554985 ' ],
104
+ 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'WatchFunctionalTest .4a554985 ' ],
105
105
'documentKey ' => (object ) ['_id ' => $ result ->getInsertedId ()]
106
106
]);
107
107
$ this ->assertEquals ($ changeStreamResult ->current (), $ expectedResult );
@@ -232,7 +232,7 @@ public function testConnectionException()
232
232
'_id ' => $ changeStreamResult ->current ()->_id ,
233
233
'operationType ' => 'insert ' ,
234
234
'fullDocument ' => (object ) ['_id ' => $ result ->getInsertedId (), 'x ' => 1 ],
235
- 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'ChangeStreamFunctionalTest .226d95f1 ' ],
235
+ 'ns ' => (object ) ['db ' => 'phplib_test ' , 'coll ' => 'WatchFunctionalTest .226d95f1 ' ],
236
236
'documentKey ' => (object ) ['_id ' => $ result ->getInsertedId ()]
237
237
]);
238
238
$ this ->assertEquals ($ changeStreamResult ->current (), $ expectedResult );
0 commit comments