Commit f35afca4 authored by catch's avatar catch
Browse files

Issue #3230714 by Beakerboy, mondrake: ConnectionUnitTest should be skipped...

Issue #3230714 by Beakerboy, mondrake: ConnectionUnitTest should be skipped for any database not psql or mysql
parent da0ae6a9
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment