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 testToInstallInfluxdb(AcceptanceTester $I) { foreach (['influxdb'] as $fileName) { if (file_exists(config_path() . "/{$fileName}.php")) { $I->deleteFile(config_path() . '/' . $fileName . '.php'); } } $I->wantTo('visit Influxdb Install Page'); $I->amOnPage('install/influxdb'); $I->see('Install InfluxDB'); $I->fillField('host', 'localhost'); $I->fillField('port', '80'); $I->fillField('username', 'influxdb'); $I->fillField('password', 'secret'); $I->click('#next-btn'); $I->seeFileFound('influxdb.php', config_path()); //$I->see('Install InfluxDB') ; }