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:
Diffstat (limited to 'tests/PHPUnit/IntegrationTestCase.php')
-rwxr-xr-xtests/PHPUnit/IntegrationTestCase.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/PHPUnit/IntegrationTestCase.php b/tests/PHPUnit/IntegrationTestCase.php
index a3716970d3..5dae1def65 100755
--- a/tests/PHPUnit/IntegrationTestCase.php
+++ b/tests/PHPUnit/IntegrationTestCase.php
@@ -112,7 +112,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
* setupBeforeClass' implementation. Can be called by derived classes in case
* they need to do some custom setup procedure.
*/
- public static function _setUpBeforeClass($dbName = false, $createEmptyDatabase = true, $createConfig = true)
+ public static function _setUpBeforeClass($dbName = false, $createEmptyDatabase = true, $createConfig = true, $installPlugins = null)
{
try {
Piwik::$piwikUrlCache = '';
@@ -160,7 +160,8 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
Piwik::setUserIsSuperUser();
Piwik_Tracker_Cache::deleteTrackerCache();
- self::installAndLoadPlugins( $installPlugins = $createEmptyDatabase);
+ if ($installPlugins === null) $installPlugins = $createEmptyDatabase;
+ self::installAndLoadPlugins( $installPlugins);
$_GET = $_REQUEST = array();