We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c549c8 commit a6aa3ccCopy full SHA for a6aa3cc
tests/TransactionTest.php
@@ -3,7 +3,6 @@
3
use Illuminate\Support\Facades\DB;
4
use Jenssegers\Mongodb\Eloquent\Model;
5
use MongoDB\BSON\ObjectId;
6
-use MongoDB\Driver\ReadPreference;
7
use MongoDB\Driver\Server;
8
9
class TransactionTest extends TestCase
@@ -425,6 +424,6 @@ public function testRollBackWithoutSession(): void
425
424
426
private function getPrimaryServerType(): int
427
{
428
- return DB::getMongoClient()->getManager()->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY))->getType();
+ return DB::getMongoClient()->getManager()->selectServer()->getType();
429
}
430
0 commit comments