示例#1
0
 /**
  * @param $flowInstalled
  * @return boolean
  *
  * @covers \Gioffreda\Component\Git\GitFlow::releaseStart
  * @covers \Gioffreda\Component\Git\GitFlow::releaseList
  * @covers \Gioffreda\Component\Git\GitFlow::releaseFinish
  * @depends testGitFlowHotfix
  */
 public function testGitFlowRelease($flowInstalled)
 {
     if (!$flowInstalled) {
         return false;
     }
     $this->assertContains('release/t1', self::$git->flow()->releaseStart('t1')->output());
     $this->assertContains('release/t1', self::$git->status());
     self::$filesystem->touch(sprintf('%s/%s', self::$git->getPath(), sha1('release/t1')));
     $this->assertContains('* t1', self::$git->flow()->releaseList()->output());
     $this->assertContains('Summary of actions', self::$git->add('.')->commit('Lorem ipsum release updated')->flow()->releaseFinish('t1', 'tag')->output());
     $this->assertContains('develop', self::$git->status());
     return true;
 }