Пример #1
0
 public function systemEventProjectRename($params)
 {
     GitActions::renameProject($params['project'], $params['new_name']);
 }
Пример #2
0
 public function file_exists_in_data_dir($params)
 {
     require_once 'GitActions.class.php';
     $params['result'] = GitActions::isNameAvailable($params['new_name'], $params['error']);
 }
Пример #3
0
 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);
 }