@@ -301,7 +301,7 @@ public function testSelectCollectionInheritsOptions(): void
301
301
$ this ->assertInstanceOf (ReadConcern::class, $ debug ['readConcern ' ]);
302
302
$ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
303
303
$ this ->assertInstanceOf (ReadPreference::class, $ debug ['readPreference ' ]);
304
- $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
304
+ $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getModeString ());
305
305
$ this ->assertIsArray ($ debug ['typeMap ' ]);
306
306
$ this ->assertSame (['root ' => 'array ' ], $ debug ['typeMap ' ]);
307
307
$ this ->assertInstanceOf (WriteConcern::class, $ debug ['writeConcern ' ]);
@@ -323,7 +323,7 @@ public function testSelectCollectionPassesOptions(): void
323
323
$ this ->assertInstanceOf (ReadConcern::class, $ debug ['readConcern ' ]);
324
324
$ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
325
325
$ this ->assertInstanceOf (ReadPreference::class, $ debug ['readPreference ' ]);
326
- $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
326
+ $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getModeString ());
327
327
$ this ->assertIsArray ($ debug ['typeMap ' ]);
328
328
$ this ->assertSame (['root ' => 'array ' ], $ debug ['typeMap ' ]);
329
329
$ this ->assertInstanceOf (WriteConcern::class, $ debug ['writeConcern ' ]);
@@ -349,7 +349,7 @@ public function testSelectGridFSBucketInheritsOptions(): void
349
349
$ this ->assertInstanceOf (ReadConcern::class, $ debug ['readConcern ' ]);
350
350
$ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
351
351
$ this ->assertInstanceOf (ReadPreference::class, $ debug ['readPreference ' ]);
352
- $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
352
+ $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getModeString ());
353
353
$ this ->assertInstanceOf (WriteConcern::class, $ debug ['writeConcern ' ]);
354
354
$ this ->assertSame (WriteConcern::MAJORITY , $ debug ['writeConcern ' ]->getW ());
355
355
}
@@ -374,7 +374,7 @@ public function testSelectGridFSBucketPassesOptions(): void
374
374
$ this ->assertInstanceOf (ReadConcern::class, $ debug ['readConcern ' ]);
375
375
$ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
376
376
$ this ->assertInstanceOf (ReadPreference::class, $ debug ['readPreference ' ]);
377
- $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
377
+ $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getModeString ());
378
378
$ this ->assertInstanceOf (WriteConcern::class, $ debug ['writeConcern ' ]);
379
379
$ this ->assertSame (WriteConcern::MAJORITY , $ debug ['writeConcern ' ]->getW ());
380
380
}
@@ -397,7 +397,7 @@ public function testWithOptionsInheritsOptions(): void
397
397
$ this ->assertInstanceOf (ReadConcern::class, $ debug ['readConcern ' ]);
398
398
$ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
399
399
$ this ->assertInstanceOf (ReadPreference::class, $ debug ['readPreference ' ]);
400
- $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
400
+ $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getModeString ());
401
401
$ this ->assertIsArray ($ debug ['typeMap ' ]);
402
402
$ this ->assertSame (['root ' => 'array ' ], $ debug ['typeMap ' ]);
403
403
$ this ->assertInstanceOf (WriteConcern::class, $ debug ['writeConcern ' ]);
@@ -419,7 +419,7 @@ public function testWithOptionsPassesOptions(): void
419
419
$ this ->assertInstanceOf (ReadConcern::class, $ debug ['readConcern ' ]);
420
420
$ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
421
421
$ this ->assertInstanceOf (ReadPreference::class, $ debug ['readPreference ' ]);
422
- $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
422
+ $ this ->assertSame (ReadPreference::SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getModeString ());
423
423
$ this ->assertIsArray ($ debug ['typeMap ' ]);
424
424
$ this ->assertSame (['root ' => 'array ' ], $ debug ['typeMap ' ]);
425
425
$ this ->assertInstanceOf (WriteConcern::class, $ debug ['writeConcern ' ]);
0 commit comments