public function throws_error_when_not_configured_and_no_remote_is_set_for_auto_detection()
{
$this->setExpectedException(UserException::class, 'Unable to get the repository information, Git remote "origin" should be set for automatic detection');
$command = new GitRepoCommand();
$this->runCommandTest($command, [], [], function (HelperSet $helperSet) {
$helperSet->set($this->getGitConfigHelper(false)->reveal());
});
}