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
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-06-25 11:01:56 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-25 11:03:15 +0300
commit84fa5d941b739b4231750a7516ff026c7cac7d09 (patch)
treea8c40fa969a0c710c1377e8fc64c358e44a12c89 /tests/PHPUnit/Framework/TestCase
parentbc82f973dc9345d460eed8377df1585515ac4c4d (diff)
In SystemTestCase, override testing environment var using new Fixture property instead of through DI, so the change is reflected in child processes.
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase')
-rwxr-xr-xtests/PHPUnit/Framework/TestCase/SystemTestCase.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
index 9d87b1a45d..b7c3929815 100755
--- a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
+++ b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
@@ -64,10 +64,7 @@ abstract class SystemTestCase extends PHPUnit_Framework_TestCase
}
$fixture->testCaseClass = get_called_class();
- $fixture->extraDefinitions = array_merge(
- array('test.vars.loadRealTranslations' => true), // load real translations for system tests
- $fixture->extraDefinitions
- );
+ $fixture->extraTestEnvVars['loadRealTranslations'] = true; // load real translations for system tests
try {
$fixture->performSetUp();