public function systemEventProjectRename($params) { GitActions::renameProject($params['project'], $params['new_name']); }
public function file_exists_in_data_dir($params) { require_once 'GitActions.class.php'; $params['result'] = GitActions::isNameAvailable($params['new_name'], $params['error']); }
public function itReturnsAnErrorIfRepoIsGerritServerIsDown() { stub($this->git_permissions_manager)->userIsGitAdmin()->returns(true); stub($this->repo)->isMigratedToGerrit()->returns(true); stub($this->project_creator)->getGerritConfig()->throws(new Git_Driver_Gerrit_Exception()); $GLOBALS['Response']->expectOnce('sendStatusCode', array(500)); $this->actions->fetchGitConfig($this->repo_id, $this->user, $this->project); }