Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-03-22 10:58:40 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-22 11:33:50 +0400
commit4a03941a576937aba15b0f2f9786bcd8d86248d5 (patch)
tree1fdc1d5c35da147870751eee70ca3a1db36498eb /core/DbHelper.php
parent0061d5cfc5cc95ffa8b6230a718dba7e53603953 (diff)
Allow dropping databases by name for tests.
Diffstat (limited to 'core/DbHelper.php')
-rw-r--r--core/DbHelper.php4
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);
}
}