function KernelTestBaseTest::testDatabaseDriverModuleEnabled
Same name and namespace in other branches
- 10 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testDatabaseDriverModuleEnabled()
- 9 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testDatabaseDriverModuleEnabled()
Tests database driver module enabled.
@legacy-covers ::bootEnvironment
File
-
core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php, line 347
Class
Namespace
Drupal\KernelTestsCode
public function testDatabaseDriverModuleEnabled() : void {
$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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.