Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $this->head = CommitTest::getStubCommit($this, $this->commitHash, function ($commit) {
         $commit->gerritChangeId()->once()->return_value($this->changeId);
     });
 }
Exemplo n.º 2
0
 public function setUp()
 {
     /** @var GerritConfig $gerritConfig */
     $gerritConfigs = $this->getMock('Bart\\Configuration\\GerritConfig', array(), array(), '', false);
     $gerritConfigs->expects($this->once())->method('host')->will($this->returnValue('gerrit.example.com'));
     $gerritConfigs->expects($this->once())->method('sshPort')->will($this->returnValue(29418));
     $gerritConfigs->expects($this->once())->method('sshUser')->will($this->returnValue('gerrit'));
     $gerritConfigs->expects($this->once())->method('sshKeyFile')->will($this->returnValue('~/.ssh/keyFile'));
     $this->gerritConfigs = $gerritConfigs;
     parent::setUp();
 }
Exemplo n.º 3
0
 public function setUp()
 {
     TestConfigurationsHelper::reset();
     parent::setUp();
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     putenv('GITOSIS_USER='******'abcde123', 'bart.git');
 }
Exemplo n.º 5
0
 public function setUp()
 {
     $this->opts = array('wsdl' => 'some random path', 'key' => 'val');
     $this->soap = $this->getMock('\\SoapClient', array(), array(), '', false);
     parent::setUp();
 }
Exemplo n.º 6
0
 public function setUp()
 {
     parent::setUp();
     $this->stubConfigs();
 }