function InstallerIsolationLevelExistingSettingsTest::prepareEnvironment
Same name in other branches
- 10 core/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php \Drupal\Tests\mysql\Functional\InstallerIsolationLevelExistingSettingsTest::prepareEnvironment()
Overrides InstallerExistingSettingsTest::prepareEnvironment
File
-
core/
modules/ mysql/ tests/ src/ Functional/ InstallerIsolationLevelExistingSettingsTest.php, line 20
Class
- InstallerIsolationLevelExistingSettingsTest
- Tests the isolation_level setting with existing database settings.
Namespace
Drupal\Tests\mysql\FunctionalCode
protected function prepareEnvironment() : void {
parent::prepareEnvironment();
$connection_info = Database::getConnectionInfo();
// The isolation_level option is only available for MySQL.
if ($connection_info['default']['driver'] !== 'mysql') {
$this->markTestSkipped("This test does not support the {$connection_info['default']['driver']} database driver.");
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.