diff options
author | diosmosis <benaka@piwik.pro> | 2015-05-31 06:32:28 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-02 01:05:28 +0300 |
commit | d6c9dafdf566a18db8f052ad6c3163094c85df63 (patch) | |
tree | 07da8d462896daa6b065fc7034ddefd0940ac2a2 /config/environment | |
parent | 978b4e433cd5583789ada3578fd0f09ebff4cce5 (diff) |
Merge Platform.initialized test environment event observer w/ the Environment.bootstrapped one.
Diffstat (limited to 'config/environment')
-rw-r--r-- | config/environment/test.php | 18 |
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(); - } - }), )), ); |