public function allows_to_overwrite_configured_org_and_repo()
{
$command = new GitRepoCommand();
$commandTest = $this->runCommandTest($command, ['--repo-adapter' => 'github_enterprise', '--org' => 'cordoval', '--repo' => 'gush-sandbox'], ['repo_adapter' => 'github', 'repo_org' => 'gushphp', 'repo_name' => 'gush']);
$display = $commandTest->getDisplay(true);
$this->assertNotContains('You did not set or provide an adapter-name', $display);
$this->assertNotNull($command->getAdapter());
$this->assertEquals('github_enterprise', $command->getAdapter()->getAdapterName());
$this->assertEquals('cordoval', $command->getAdapter()->getUsername());
$this->assertEquals('gush-sandbox', $command->getAdapter()->getRepository());
// This correct as the issue-org/repo is not set and so inherits
// from the adapter-org/repo config. The option only overwrites the adapter.
$this->assertEquals('gushphp', $command->getIssueTracker()->getUsername());
$this->assertEquals('gush', $command->getIssueTracker()->getRepository());
}