Loading core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php +12 −8 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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. Loading Loading @@ -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. Loading Loading @@ -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. Loading Loading
core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php +12 −8 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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. Loading Loading @@ -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. Loading Loading @@ -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. Loading