示例#1
0
 public function testToInstallWhenNotInstalled(AcceptanceTester $I)
 {
     $I->wantTo('Try to Install If stigma was not installed');
     foreach (['nagios', 'grafana', 'influxdb'] as $fileName) {
         if (file_exists(config_path() . "/{$fileName}.php")) {
             $I->deleteFile(config_path() . '/' . $fileName . '.php');
         }
     }
     $I->amOnPage('/');
     $I->seeInCurrentUrl('/installation');
     $I->see('installation');
     $I->click('#next-btn');
     $I->amOnPage('/install/database');
 }