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
path: root/config
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-05-31 06:32:28 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-02 01:05:28 +0300
commitd6c9dafdf566a18db8f052ad6c3163094c85df63 (patch)
tree07da8d462896daa6b065fc7034ddefd0940ac2a2 /config
parent978b4e433cd5583789ada3578fd0f09ebff4cce5 (diff)
Merge Platform.initialized test environment event observer w/ the Environment.bootstrapped one.
Diffstat (limited to 'config')
-rw-r--r--config/environment/test.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/config/environment/test.php b/config/environment/test.php
index 5f631db07a..674d6c44a2 100644
--- a/config/environment/test.php
+++ b/config/environment/test.php
@@ -74,6 +74,14 @@ return array(
\Piwik\Plugins\CoreVisualizations\Visualizations\Cloud::$debugDisableShuffle = true;
\Piwik\Visualization\Sparkline::$enableSparklineImages = false;
\Piwik\Plugins\ExampleUI\API::$disableRandomness = true;
+
+ $testingEnvironment = new TestingEnvironment();
+ if ($testingEnvironment->deleteArchiveTables
+ && !$testingEnvironment->_archivingTablesDeleted
+ ) {
+ $testingEnvironment->_archivingTablesDeleted = true;
+ DbHelper::deleteArchiveTables();
+ }
}),
array('AssetManager.getStylesheetFiles', function (&$stylesheets) {
@@ -111,15 +119,5 @@ return array(
);
file_put_contents($outputFile, json_encode($outputContents));
}),
-
- array('Platform.initialized', function () {
- $testingEnvironment = new TestingEnvironment();
- if ($testingEnvironment->deleteArchiveTables
- && !$testingEnvironment->_archivingTablesDeleted
- ) {
- $testingEnvironment->_archivingTablesDeleted = true;
- DbHelper::deleteArchiveTables();
- }
- }),
)),
);