public function KernelTestBaseTest::testDatabaseDriverModuleEnabled in Drupal 10
@covers ::bootEnvironment
File
- core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php, line 365
Class
- KernelTestBaseTest
- @coversDefaultClass \Drupal\KernelTests\KernelTestBase
Namespace
Drupal\KernelTestsCode
public function testDatabaseDriverModuleEnabled() {
$module = Database::getConnection()
->getProvider();
// Test that the module that is providing the database driver is enabled.
$this
->assertSame(1, \Drupal::service('extension.list.module')
->get($module)->status);
}