public function DatabaseFactoryTest::testGetSadAliasForBadDatabase in MongoDB 8.2
Test referencing an alias pointing to an ill-formed (empty) database name.
File
- modules/
mongodb/ tests/ src/ Kernel/ DatabaseFactoryTest.php, line 80
Class
- DatabaseFactoryTest
- Tests the DatabaseFactory.
Namespace
Drupal\Tests\mongodb\KernelCode
public function testGetSadAliasForBadDatabase() {
$database = $this->databaseFactory
->get(static::DB_INVALID_ALIAS);
$this
->assertNull($database, 'Selecting an invalid alias returns a null database.');
}