protected function getGitConfigHelper() { $helper = parent::getGitConfigHelper(); $helper->ensureRemoteExists('gushphp', 'gush')->shouldBeCalled(); $helper->ensureRemoteExists('cordoval', 'gush')->shouldBeCalled(); return $helper; }
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; }
protected function getGitConfigHelper($localBranchExists = false, $remoteMatches = false) { $helper = parent::getGitConfigHelper(); $helper->ensureRemoteExists('cordoval', 'gush')->shouldBeCalled(); if (!$localBranchExists) { $helper->setGitConfig('branch.head_ref.remote', 'cordoval', true)->shouldBeCalled(); } else { $helper->getGitConfig('branch.head_ref.remote')->willReturn($remoteMatches ? 'cordoval' : 'someone'); } return $helper; }
protected function getGitConfigHelper($remoteName = 'cordoval', $url = 'git@github.com:cordoval/gush.git') { $gitHelper = parent::getGitConfigHelper(); $gitHelper->setRemote($remoteName, $url)->shouldBeCalled(); return $gitHelper; }
protected function getGitConfigHelper($sourceOrg = 'cordoval', $sourceRepo = 'gush') { $helper = parent::getGitConfigHelper(); $helper->ensureRemoteExists('gushphp', 'gush')->shouldBeCalled(); $helper->remoteExists($sourceOrg, $sourceRepo)->willReturn(); $helper->ensureRemoteExists($sourceOrg, $sourceRepo)->willReturn(); return $helper; }
protected function getGitConfigHelper($notes = true) { $helper = parent::getGitConfigHelper(); $helper->ensureRemoteExists('gushphp', 'gush')->shouldBeCalled(); // base $helper->ensureRemoteExists('cordoval', 'gush')->shouldBeCalled(); // source if ($notes) { $helper->ensureNotesFetching('gushphp')->shouldBeCalled(); } return $helper; }
protected function getGitConfigHelper($org = 'gushphp', $repo = 'gush') { $helper = parent::getGitConfigHelper(); $helper->ensureRemoteExists($org, $repo)->shouldBeCalled(); return $helper; }