You are here

public function DatabaseFactoryTest::testGetHappy in MongoDB 8.2

Test normal case.

File

modules/mongodb/tests/src/Kernel/DatabaseFactoryTest.php, line 54

Class

DatabaseFactoryTest
Tests the DatabaseFactory.

Namespace

Drupal\Tests\mongodb\Kernel

Code

public function testGetHappy() {
  $drupal = $this->databaseFactory
    ->get(static::DB_DEFAULT_ALIAS);
  $this
    ->assertInstanceOf(Database::class, $drupal, 'get() returns a valid database instance.');
}