function InstallerIsolationLevelExistingSettingsTest::prepareEnvironment

Same name and namespace in other branches
  1. 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\Functional

Code

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.