diff options
author | diosmosis <benaka@piwik.pro> | 2015-12-25 16:52:23 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2016-01-13 15:42:23 +0300 |
commit | 477740e118e0f1f19fa2721530438aa59159e42e (patch) | |
tree | 6d9c3650acc03430f65b582cc42eaa742ce29be9 /plugins/Monolog/tests | |
parent | a9033a0dbfaf11e2e4f79a05e9a34e3e2af6679a (diff) |
Archive in UITestFixture using correct test environment overrides (loadRealTranslations=1 is needed for archiving) so results are accurate. Also, do not use Fixture::getTestEnvironment() in fixtures, instead create new instances of TestingEnvironmentVariables so changes made to the file are not ignored/lost.
Diffstat (limited to 'plugins/Monolog/tests')
-rw-r--r-- | plugins/Monolog/tests/System/TrackerLoggingTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Monolog/tests/System/TrackerLoggingTest.php b/plugins/Monolog/tests/System/TrackerLoggingTest.php index 8716229116..0c85338850 100644 --- a/plugins/Monolog/tests/System/TrackerLoggingTest.php +++ b/plugins/Monolog/tests/System/TrackerLoggingTest.php @@ -12,6 +12,7 @@ use Piwik\Config; use Piwik\Date; use Piwik\Tests\Framework\Fixture; use Piwik\Tests\Framework\TestCase\SystemTestCase; +use Piwik\Tests\Framework\TestingEnvironmentVariables; use PiwikTracker; /** @@ -82,7 +83,7 @@ DEBUG: 'apiv' => '1',", $response); private function setTrackerConfig($trackerConfig) { - $testingEnvironment = self::$fixture->getTestEnvironment(); + $testingEnvironment = new TestingEnvironmentVariables(); $testingEnvironment->overrideConfig('Tracker', $trackerConfig); $testingEnvironment->overrideConfig('log', 'log_writers', array('screen')); $testingEnvironment->save(); |