getGitConfigHelper() protected method

protected getGitConfigHelper ( ) : Prophecy\Prophecy\ObjectProphecy
return Prophecy\Prophecy\ObjectProphecy
Example #1
0
 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;
 }