Skip to content

Commit

Permalink
DB testing might be disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 24, 2013
1 parent 5fdac6c commit b741c5f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
Expand Up @@ -194,8 +194,10 @@ public static function tearDownAfterClass()
if (self::$migrator) {
self::$migrator->down();
}
self::$db->disconnect();
self::$db = null;
if (self::$db) {
self::$db->disconnect();
self::$db = null;
}
parent::tearDownAfterClass();
}

Expand Down
6 changes: 4 additions & 2 deletions framework/Auth/test/Horde/Auth/Unit/Sql/Base.php
Expand Up @@ -47,8 +47,10 @@ public static function tearDownAfterClass()
if (self::$migrator) {
self::$migrator->down();
}
self::$db->disconnect();
self::$db = null;
if (self::$db) {
self::$db->disconnect();
self::$db = null;
}
parent::tearDownAfterClass();
}

Expand Down
6 changes: 4 additions & 2 deletions framework/Group/test/Horde/Group/Sql/Base.php
Expand Up @@ -152,8 +152,10 @@ public static function tearDownAfterClass()
if (self::$migrator) {
self::$migrator->down();
}
self::$db->disconnect();
self::$db = null;
if (self::$db) {
self::$db->disconnect();
self::$db = null;
}
parent::tearDownAfterClass();
}

Expand Down
6 changes: 4 additions & 2 deletions framework/Prefs/test/Horde/Prefs/Unit/Storage/Sql/Base.php
Expand Up @@ -85,8 +85,10 @@ public static function tearDownAfterClass()
if (self::$migrator) {
self::$migrator->down();
}
self::$db->disconnect();
self::$db = null;
if (self::$db) {
self::$db->disconnect();
self::$db = null;
}
}

public function setUp()
Expand Down
Expand Up @@ -95,8 +95,10 @@ public static function tearDownAfterClass()
if (self::$migrator) {
self::$migrator->down();
}
self::$db->disconnect();
self::$db = null;
if (self::$db) {
self::$db->disconnect();
self::$db = null;
}
parent::tearDownAfterClass();
}

Expand Down
6 changes: 4 additions & 2 deletions framework/Vfs/test/Horde/Vfs/Sql/Base.php
Expand Up @@ -186,8 +186,10 @@ public static function tearDownAfterClass()
if (self::$migrator) {
self::$migrator->down();
}
self::$db->disconnect();
self::$db = null;
if (self::$db) {
self::$db->disconnect();
self::$db = null;
}
parent::tearDownAfterClass();
}

Expand Down

0 comments on commit b741c5f

Please sign in to comment.