function testCheckCommentExistInLegacyFormat() { $artImp = new ArtifactImportTestVersion($this); $artId = 12237; $parsedFollow = array('comment' => '<pre> testing issue </pre>'); $this->assertTrue($artImp->checkCommentExistInLegacyFormat($parsedFollow, $artId)); }
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)); }