public function testLocalConfiguringWithRequiredOptionsInNonInteractive()
{
$command = new InitCommand();
$tester = $this->getCommandTester($command, [], []);
$tester->execute(['--repo-adapter' => 'github', '--org' => 'MyOrg', '--repo' => 'MyRepo'], ['interactive' => false]);
$display = $tester->getDisplay();
$this->assertCommandOutputMatches(['Repository-manager "GitHub" is not configured yet.', 'Issue-tracker "GitHub" is not configured yet.', 'Run the "core:configure" command to configure the adapters.', ['\\[OK\\]\\sConfiguration file saved successfully\\.$', true]], $display);
$expected = ['repo_adapter' => 'github', 'issue_tracker' => 'github', 'repo_org' => 'MyOrg', 'repo_name' => 'MyRepo', 'issue_project_org' => 'MyOrg', 'issue_project_name' => 'MyRepo'];
$this->assertFileExists($command->getConfig()->get('local_config'));
$this->assertEquals($expected, $command->getConfig()->toArray(Config::CONFIG_LOCAL));
}