diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-25 11:01:56 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-25 11:03:15 +0300 |
commit | 84fa5d941b739b4231750a7516ff026c7cac7d09 (patch) | |
tree | a8c40fa969a0c710c1377e8fc64c358e44a12c89 /tests/PHPUnit/Framework/TestCase | |
parent | bc82f973dc9345d460eed8377df1585515ac4c4d (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-x | tests/PHPUnit/Framework/TestCase/SystemTestCase.php | 5 |
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(); |