function InstallerIsolationLevelExistingSettingsTest::prepareEnvironment
Fully configures a preexisting settings.php file before invoking the interactive installer.
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() {
  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.