You are here

protected function SqlModeTest::setUp in Drupal 9

Overrides DatabaseTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Database/SqlModeTest.php, line 15

Class

SqlModeTest
Tests compatibility of the MySQL driver with various sql_mode options.

Namespace

Drupal\KernelTests\Core\Database

Code

protected function setUp() : void {
  parent::setUp();
  if ($this->connection
    ->databaseType() !== 'mysql') {
    $this
      ->markTestSkipped("Skipping test since sql_mode is a MySQL-only feature.");
  }
}