コード例 #1
0
ファイル: ArtifactImportTest.php プロジェクト: nterray/tuleap
 function testCheckCommentExistInLegacyFormat()
 {
     $artImp = new ArtifactImportTestVersion($this);
     $artId = 12237;
     $parsedFollow = array('comment' => '<pre> testing issue </pre>');
     $this->assertTrue($artImp->checkCommentExistInLegacyFormat($parsedFollow, $artId));
 }
コード例 #2
0
 function testCheckCommentExistInLegacyFormat()
 {
     stub($this->da)->numRows()->returns(1);
     stub($this->da)->fetchArray()->returns(array('new_value' => '<pre> testing issue </pre>'));
     stub($this->dar)->getResult()->returns(true);
     $artImp = new ArtifactImportTestVersion($this);
     $artId = 12237;
     $parsedFollow = array('comment' => '<pre> testing issue </pre>');
     $this->assertTrue($artImp->checkCommentExistInLegacyFormat($parsedFollow, $artId));
 }