diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-02 01:42:01 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-05 23:37:08 +0300 |
commit | 65d4c301d922c77039de3533778678acbd4eaabb (patch) | |
tree | 83433c37ad5be34729989ff15fce82d3f66b6fa0 /config/environment | |
parent | 52bed8ed6fd9240f476a7bf8c739b4d7eabfc9ff (diff) |
Move Environment.bootstrapped event observer in test.php DI config file to TestingEnvironmentManipulator.
Diffstat (limited to 'config/environment')
-rw-r--r-- | config/environment/test.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/config/environment/test.php b/config/environment/test.php index 5fadb7a9ec..280902f0eb 100644 --- a/config/environment/test.php +++ b/config/environment/test.php @@ -49,42 +49,6 @@ return array( 'observers.global' => DI\add(array( - array('Environment.bootstrapped', function () { - $testingEnvironment = new TestingEnvironmentVariables(); - $testingEnvironment->executeSetupTestEnvHook(); - - if (empty($_GET['ignoreClearAllViewDataTableParameters'])) { // TODO: should use testingEnvironment variable, not query param - try { - \Piwik\ViewDataTable\Manager::clearAllViewDataTableParameters(); - } catch (\Exception $ex) { - // ignore (in case DB is not setup) - } - } - - $testingEnvironment = new TestingEnvironmentVariables(); - if ($testingEnvironment->optionsOverride) { - try { - foreach ($testingEnvironment->optionsOverride as $name => $value) { - Option::set($name, $value); - } - } catch (\Exception $ex) { - // ignore (in case DB is not setup) - } - } - - \Piwik\Plugins\CoreVisualizations\Visualizations\Cloud::$debugDisableShuffle = true; - \Piwik\Visualization\Sparkline::$enableSparklineImages = false; - \Piwik\Plugins\ExampleUI\API::$disableRandomness = true; - - $testingEnvironment = new TestingEnvironmentVariables(); - if ($testingEnvironment->deleteArchiveTables - && !$testingEnvironment->_archivingTablesDeleted - ) { - $testingEnvironment->_archivingTablesDeleted = true; - DbHelper::deleteArchiveTables(); - } - }), - array('AssetManager.getStylesheetFiles', function (&$stylesheets) { $testingEnvironment = new TestingEnvironmentVariables(); if ($testingEnvironment->useOverrideCss) { |