Skip to content

Commit b5864f4

Browse files
Merge 5.4 into 5.x (#3370)
2 parents 0125031 + d56aefa commit b5864f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: tests/ConnectionTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testDisconnectAndCreateNewConnection()
6363
public function testDb()
6464
{
6565
$connection = DB::connection('mongodb');
66-
$this->assertInstanceOf(Database::class, $connection->getMongoDB());
66+
$this->assertInstanceOf(Database::class, $connection->getDatabase());
6767
$this->assertInstanceOf(Client::class, $connection->getClient());
6868
}
6969

@@ -199,7 +199,7 @@ public function testConnectionConfig(string $expectedUri, string $expectedDataba
199199
$client = $connection->getClient();
200200

201201
$this->assertSame($expectedUri, (string) $client);
202-
$this->assertSame($expectedDatabaseName, $connection->getMongoDB()->getDatabaseName());
202+
$this->assertSame($expectedDatabaseName, $connection->getDatabase()->getDatabaseName());
203203
$this->assertSame('foo', $connection->getCollection('foo')->getCollectionName());
204204
$this->assertSame('foo', $connection->table('foo')->raw()->getCollectionName());
205205
}

Diff for: tests/FilesystemsTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function provideValidOptions(): Generator
5656
'driver' => 'gridfs',
5757
'bucket' => static fn (Application $app) => $app['db']
5858
->connection('mongodb')
59-
->getMongoDB()
59+
->getDatabase()
6060
->selectGridFSBucket(),
6161
],
6262
];
@@ -68,7 +68,7 @@ public function testValidOptions(array $options)
6868
// Service used by "bucket-service"
6969
$this->app->singleton('bucket', static fn (Application $app) => $app['db']
7070
->connection('mongodb')
71-
->getMongoDB()
71+
->getDatabase()
7272
->selectGridFSBucket());
7373

7474
$this->app['config']->set('filesystems.disks.' . $this->dataName(), $options);
@@ -145,6 +145,6 @@ public function testPrefix()
145145

146146
private function getBucket(): Bucket
147147
{
148-
return DB::connection('mongodb')->getMongoDB()->selectGridFSBucket();
148+
return DB::connection('mongodb')->getDatabase()->selectGridFSBucket();
149149
}
150150
}

0 commit comments

Comments
 (0)