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