Example #1
0
 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();
 }
Example #2
0
 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();
 }