public static function setUpBeforeClass() { parent::setUpBeforeClass(); $testingEnvironment = new \Piwik\Tests\Framework\TestingEnvironmentVariables(); $testingEnvironment->configFileLocal = PIWIK_INCLUDE_PATH . '/plugins/Installation/tests/resources/config.ini.php'; $testingEnvironment->save(); }
private function addFailingScheduledTaskToTracker($doFatalError) { $testingEnvironment = new \Piwik\Tests\Framework\TestingEnvironmentVariables(); $testingEnvironment->addFailingScheduledTask = true; $testingEnvironment->scheduledTaskFailureShouldBeFatal = $doFatalError; $testingEnvironment->save(); }
private function simulateHost($host) { $testingEnvironment = new \Piwik\Tests\Framework\TestingEnvironmentVariables(); $testingEnvironment->hostOverride = $host; $testingEnvironment->save(); }