Ejemplo n.º 1
0
 public function _before(AcceptanceTester $I)
 {
     foreach (['nagios', 'grafana', 'influxdb'] as $fileName) {
         if (file_exists(config_path() . "/{$fileName}.php")) {
             $I->deleteFile(config_path() . '/' . $fileName . '.php');
         }
     }
 }
Ejemplo n.º 2
0
 public function testToInstall(AcceptanceTester $I)
 {
     $I->wantTo('see status whene installation is succesful');
     foreach (['nagios', 'grafana', 'influxdb'] as $fileName) {
         if (!file_exists(config_path() . "/{$fileName}.php")) {
             file_put_contents(config_path() . '/' . $fileName . '.php', '');
         }
     }
     $I->amOnPage('/');
     $I->see('installed');
 }