diff --git a/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php b/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php index 58193c6db136096870488f758f2cf0e2739f62ad..67a81adbfbea11386c235a65eac80af674e13e61 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php @@ -119,8 +119,9 @@ protected function assertNoConnection($id) { */ public function testOpenClose() { // Do not run this test for an SQLite database. - if ($this->connection->databaseType() == 'sqlite') { - $this->markTestSkipped("This tests can not run with an SQLite database."); + $database_type = $this->connection->databaseType(); + if ($database_type != 'mysql' && $database_type != 'pgsql') { + $this->markTestSkipped("This tests only runs on MySQL and PostgreSQL"); } // Add and open a new connection. @@ -145,8 +146,9 @@ public function testOpenClose() { */ public function testOpenQueryClose() { // Do not run this test for an SQLite database. - if ($this->connection->databaseType() == 'sqlite') { - $this->markTestSkipped("This tests can not run with an SQLite database."); + $database_type = $this->connection->databaseType(); + if ($database_type != 'mysql' && $database_type != 'pgsql') { + $this->markTestSkipped("This tests only runs on MySQL and PostgreSQL"); } // Add and open a new connection. @@ -174,8 +176,9 @@ public function testOpenQueryClose() { */ public function testOpenQueryPrefetchClose() { // Do not run this test for an SQLite database. - if ($this->connection->databaseType() == 'sqlite') { - $this->markTestSkipped("This tests can not run with an SQLite database."); + $database_type = $this->connection->databaseType(); + if ($database_type != 'mysql' && $database_type != 'pgsql') { + $this->markTestSkipped("This tests only runs on MySQL and PostgreSQL"); } // Add and open a new connection. @@ -203,8 +206,9 @@ public function testOpenQueryPrefetchClose() { */ public function testOpenSelectQueryClose() { // Do not run this test for an SQLite database. - if ($this->connection->databaseType() == 'sqlite') { - $this->markTestSkipped("This tests can not run with an SQLite database."); + $database_type = $this->connection->databaseType(); + if ($database_type != 'mysql' && $database_type != 'pgsql') { + $this->markTestSkipped("This tests only runs on MySQL and PostgreSQL"); } // Add and open a new connection.