public function setUp() { parent::setUp(); $this->group = 'contributors'; $this->groupname = $this->project_name . '/' . $this->namespace . '/' . $this->repository_name . '-' . $this->group; $this->ldap_uid = 'someuser'; $this->user = new Git_Driver_Gerrit_User(stub('LDAP_User')->getUid()->returns($this->ldap_uid)); $this->insert_member_query = 'gerrit gsql --format json -c "INSERT\\ INTO\\ account_group_members\\ (account_id,\\ group_id)\\ SELECT\\ A.account_id,\\ G.group_id\\ FROM\\ account_external_ids\\ A,\\ account_groups\\ G\\ WHERE\\ A.external_id=\\\'username:'******'\\\'\\ AND\\ G.name=\\\'' . $this->groupname . '\\\'"'; $this->set_account_query = 'gerrit set-account ' . $this->ldap_uid; }
public function setUp() { parent::setUp(); $this->gerrit_driver = partial_mock('Git_Driver_GerritLegacy', array('doesTheGroupExist'), array($this->ssh, $this->logger)); }