diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-22 10:58:40 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-22 11:33:50 +0400 |
commit | 4a03941a576937aba15b0f2f9786bcd8d86248d5 (patch) | |
tree | 1fdc1d5c35da147870751eee70ca3a1db36498eb /core/DbHelper.php | |
parent | 0061d5cfc5cc95ffa8b6230a718dba7e53603953 (diff) |
Allow dropping databases by name for tests.
Diffstat (limited to 'core/DbHelper.php')
-rw-r--r-- | core/DbHelper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/DbHelper.php b/core/DbHelper.php index 01237cc02a..7bb57e13f9 100644 --- a/core/DbHelper.php +++ b/core/DbHelper.php @@ -102,10 +102,10 @@ class DbHelper /** * Drop database, used in tests */ - public static function dropDatabase() + public static function dropDatabase($dbName = null) { if (defined('PIWIK_TEST_MODE') && PIWIK_TEST_MODE) { - Schema::getInstance()->dropDatabase(); + Schema::getInstance()->dropDatabase($dbName); } } |