protected function getGitConfigHelper($hasRemote = true) { $helper = parent::getGitConfigHelper(); $helper->getRemoteInfo('origin')->willReturn(['host' => 'github.com', 'vendor' => 'gushphp', 'repo' => 'gush']); $helper->remoteExists('cordoval')->willReturn(false); $helper->remoteExists('origin')->willReturn($hasRemote); $helper->getGitConfig('remote.origin.url')->willReturn('git@github.com:gushphp/gush.git'); return $helper; }