diff options
Diffstat (limited to 'modules/gallery_unit_test/controllers')
-rw-r--r-- | modules/gallery_unit_test/controllers/test.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery_unit_test/controllers/test.php b/modules/gallery_unit_test/controllers/test.php index d012cf8b..75ba6f35 100644 --- a/modules/gallery_unit_test/controllers/test.php +++ b/modules/gallery_unit_test/controllers/test.php @@ -38,6 +38,9 @@ class Test_Controller extends Controller { try { $db = Database::instance('unit_test'); $db->connect(); + + // Make this the default database for the rest of this run + Database::$instances = array('default' => $db); } catch (Exception $e) { print "{$e->getMessage()}\n"; return; |