public function _before(AcceptanceTester $I) { foreach (['nagios', 'grafana', 'influxdb'] as $fileName) { if (file_exists(config_path() . "/{$fileName}.php")) { $I->deleteFile(config_path() . '/' . $fileName . '.php'); } } }
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'); }