public function setUp() { parent::setUp(); $this->key1 = 'ssh-rsa AAAAYZi1ju3FeZu6EKKltZ0uftOfj6w== marcel@labobine.net'; $this->key2 = 'ssh-rsa AAAAXYiTICSgWURDPDGW/HeNUYZIRcznQ== marcel@shanon.net'; chdir('/var'); }
public function setUp() { parent::setUp(); $this->project_manager = mock('ProjectManager'); $this->gitoliterc_reader = mock('Git_Gitolite_GitoliteRCReader'); $this->another_gitolite_permissions_serializer = new Git_Gitolite_ConfigPermissionsSerializer($this->mirror_data_mapper, mock('Git_Driver_Gerrit_ProjectCreatorStatus'), 'whatever'); $this->a_gitolite_project_serializer = new Git_Gitolite_ProjectSerializer($this->logger, $this->repository_factory, $this->another_gitolite_permissions_serializer, $this->url_manager); $this->gitolite_conf_writer = new Git_Gitolite_GitoliteConfWriter($this->another_gitolite_permissions_serializer, $this->a_gitolite_project_serializer, $this->gitoliterc_reader, $this->mirror_data_mapper, mock('Logger'), $this->project_manager, $this->sys_data_dir . '/gitolite/admin'); $this->a_gitolite_driver = new Git_GitoliteDriver($this->logger, $this->git_system_event_manager, $this->url_manager, mock('GitDao'), mock('Git_Mirror_MirrorDao'), mock('GitPlugin'), $this->gitExec, $this->repository_factory, $this->another_gitolite_permissions_serializer, $this->gitolite_conf_writer, $this->project_manager, $this->mirror_data_mapper); $this->another_git_exec = mock('Git_Exec'); stub($this->another_git_exec)->add()->returns(true); $this->another_gitolite_driver = new Git_GitoliteDriver($this->logger, $this->git_system_event_manager, $this->url_manager, mock('GitDao'), mock('Git_Mirror_MirrorDao'), mock('GitPlugin'), $this->another_git_exec, $this->repository_factory, $this->another_gitolite_permissions_serializer, $this->gitolite_conf_writer, $this->project_manager, $this->mirror_data_mapper); }