예제 #1
0
 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));
 }