diff options
author | diosmosis <benaka@piwik.pro> | 2015-05-29 04:03:44 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-02 01:05:28 +0300 |
commit | 94dbed5837afeca3121d2dfa5ab1b8f07359a8ed (patch) | |
tree | 05bf110c604f9f6303c1498bbc4128b45af70d49 /config | |
parent | af74cb780fea5dfbceb211fc20efad0cd146671b (diff) |
Do not use function static variable in event observer defined in test.php DI config.
Diffstat (limited to 'config')
-rw-r--r-- | config/environment/test.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/config/environment/test.php b/config/environment/test.php index 691a10f449..760a8dc05d 100644 --- a/config/environment/test.php +++ b/config/environment/test.php @@ -116,13 +116,11 @@ return array( }), array('Platform.initialized', function () { - static $archivingTablesDeleted = false; - $testingEnvironment = new TestingEnvironment(); if ($testingEnvironment->deleteArchiveTables - && !$archivingTablesDeleted + && !$testingEnvironment->_archivingTablesDeleted ) { - $archivingTablesDeleted = true; + $testingEnvironment->_archivingTablesDeleted = true; DbHelper::deleteArchiveTables(); } }), |