public function testLocalAutoConfiguringInNonInteractive()
{
$command = new InitCommand();
$tester = $this->getCommandTester($command, ['adapters' => ['github' => ['authentication' => ['http-auth-type' => TestConfigurator::AUTH_HTTP_TOKEN, 'username' => TestConfigurator::USERNAME, 'token' => TestConfigurator::PASSWORD], 'base_url' => 'https://api.github.com/', 'repo_domain_url' => 'https://github.com']]], []);
$tester->execute([], ['interactive' => false]);
$display = $tester->getDisplay();
$this->assertNotContains('Run the "core:configure" command to configure the adapters.', $display);
$this->assertCommandOutputMatches(['You did not provide an organization and/or repository name.', 'Org: "gushphp" / repo: "gush"', ['\\[OK\\]\\sConfiguration file saved successfully\\.$', true]], $display);
$expected = ['repo_adapter' => 'github', 'issue_tracker' => 'github', 'repo_org' => 'gushphp', 'repo_name' => 'gush', 'issue_project_org' => 'gushphp', 'issue_project_name' => 'gush'];
$this->assertFileExists($command->getConfig()->get('local_config'));
$this->assertEquals($expected, $command->getConfig()->toArray(Config::CONFIG_LOCAL));
}