Example #1
0
 public function setUp()
 {
     parent::setUp();
     $tempDir = sys_get_temp_dir();
     $this->baseDir = tempnam($tempDir, 'icinga2-web');
     system('mkdir -p ' . $this->baseDir . dirname(self::$classFile));
     file_put_contents($this->baseDir . self::$classFile, self::$classContent);
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     Translator::registerDomain('icingatest', BaseTestCase::$testDir . '/res/locale');
 }
Example #3
0
 public function setUp()
 {
     $this->markTestSkipped();
     parent::setUp();
     Hook::clean();
 }
Example #4
0
 public function setUp()
 {
     parent::setUp();
     $this->target = tempnam(sys_get_temp_dir(), 'log');
 }
Example #5
0
 /**
  * Set up config dir
  */
 public function setUp()
 {
     parent::setUp();
     $this->oldConfigDir = Config::$configDir;
     Config::$configDir = dirname(__FILE__) . '/ConfigTest/files';
 }
Example #6
0
 public function setUp()
 {
     parent::setUp();
     $this->sampleData = array((object) array('host' => 'localhost', 'problem' => '1', 'service' => 'ping', 'state' => '2', 'handled' => '1'), (object) array('host' => 'localhost', 'problem' => '1', 'service' => 'www.icinga.org', 'state' => '0', 'handled' => '0'), (object) array('host' => 'localhost', 'problem' => '1', 'service' => 'www.icinga.org', 'state' => '1', 'handled' => '0'));
 }
Example #7
0
 public function setUp()
 {
     parent::setUp();
     $this->tempFile = tempnam(sys_get_temp_dir(), 'icinga-ini-writer-test');
     $this->tempFile2 = tempnam(sys_get_temp_dir(), 'icinga-ini-writer-test-2');
 }
Example #8
0
 public function setUp()
 {
     parent::setUp();
     Hook::clean();
 }