diff --git a/tests/ConnectionTest.php b/tests/ConnectionTest.php index ba5e09804..75761080e 100644 --- a/tests/ConnectionTest.php +++ b/tests/ConnectionTest.php @@ -63,7 +63,7 @@ public function testDisconnectAndCreateNewConnection() public function testDb() { $connection = DB::connection('mongodb'); - $this->assertInstanceOf(Database::class, $connection->getMongoDB()); + $this->assertInstanceOf(Database::class, $connection->getDatabase()); $this->assertInstanceOf(Client::class, $connection->getClient()); } @@ -199,7 +199,7 @@ public function testConnectionConfig(string $expectedUri, string $expectedDataba $client = $connection->getClient(); $this->assertSame($expectedUri, (string) $client); - $this->assertSame($expectedDatabaseName, $connection->getMongoDB()->getDatabaseName()); + $this->assertSame($expectedDatabaseName, $connection->getDatabase()->getDatabaseName()); $this->assertSame('foo', $connection->getCollection('foo')->getCollectionName()); $this->assertSame('foo', $connection->table('foo')->raw()->getCollectionName()); } diff --git a/tests/FilesystemsTest.php b/tests/FilesystemsTest.php index 3b9fa8e5f..7b8141905 100644 --- a/tests/FilesystemsTest.php +++ b/tests/FilesystemsTest.php @@ -56,7 +56,7 @@ public static function provideValidOptions(): Generator 'driver' => 'gridfs', 'bucket' => static fn (Application $app) => $app['db'] ->connection('mongodb') - ->getMongoDB() + ->getDatabase() ->selectGridFSBucket(), ], ]; @@ -68,7 +68,7 @@ public function testValidOptions(array $options) // Service used by "bucket-service" $this->app->singleton('bucket', static fn (Application $app) => $app['db'] ->connection('mongodb') - ->getMongoDB() + ->getDatabase() ->selectGridFSBucket()); $this->app['config']->set('filesystems.disks.' . $this->dataName(), $options); @@ -145,6 +145,6 @@ public function testPrefix() private function getBucket(): Bucket { - return DB::connection('mongodb')->getMongoDB()->selectGridFSBucket(); + return DB::connection('mongodb')->getDatabase()->selectGridFSBucket(); } }