@@ -139,8 +139,9 @@ public function testGetSelectsCollectionAndInheritsOptions()
139
139
$ collection = $ database ->{$ this ->getCollectionName ()};
140
140
$ debug = $ collection ->__debugInfo ();
141
141
142
- $ this ->assertSame ($ this ->getCollectionName () , $ debug ['collectionName ' ]);
142
+ $ this ->assertSame ($ this ->manager , $ debug ['manager ' ]);
143
143
$ this ->assertSame ($ this ->getDatabaseName (), $ debug ['databaseName ' ]);
144
+ $ this ->assertSame ($ this ->getCollectionName (), $ debug ['collectionName ' ]);
144
145
$ this ->assertInstanceOf ('MongoDB\Driver\WriteConcern ' , $ debug ['writeConcern ' ]);
145
146
$ this ->assertSame (WriteConcern::MAJORITY , $ debug ['writeConcern ' ]->getW ());
146
147
}
@@ -158,6 +159,9 @@ public function testSelectCollectionInheritsOptions()
158
159
$ collection = $ database ->selectCollection ($ this ->getCollectionName ());
159
160
$ debug = $ collection ->__debugInfo ();
160
161
162
+ $ this ->assertSame ($ this ->manager , $ debug ['manager ' ]);
163
+ $ this ->assertSame ($ this ->getDatabaseName (), $ debug ['databaseName ' ]);
164
+ $ this ->assertSame ($ this ->getCollectionName (), $ debug ['collectionName ' ]);
161
165
$ this ->assertInstanceOf ('MongoDB\Driver\ReadConcern ' , $ debug ['readConcern ' ]);
162
166
$ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
163
167
$ this ->assertInstanceOf ('MongoDB\Driver\ReadPreference ' , $ debug ['readPreference ' ]);
@@ -252,6 +256,8 @@ public function testWithOptionsInheritsOptions()
252
256
$ clone = $ database ->withOptions ();
253
257
$ debug = $ clone ->__debugInfo ();
254
258
259
+ $ this ->assertSame ($ this ->manager , $ debug ['manager ' ]);
260
+ $ this ->assertSame ($ this ->getDatabaseName (), $ debug ['databaseName ' ]);
255
261
$ this ->assertInstanceOf ('MongoDB\Driver\ReadConcern ' , $ debug ['readConcern ' ]);
256
262
$ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
257
263
$ this ->assertInstanceOf ('MongoDB\Driver\ReadPreference ' , $ debug ['readPreference ' ]);
0 commit comments