Skip to content
Snippets Groups Projects
Commit e51b151e authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #76992 fix test failure

parent f6a8d542
Branches
Tags
2 merge requests!2746Hotline,!2726hotline #76992 improve refuse message in article workflow
Pipeline #4552 passed with stage
in 53 minutes and 32 seconds
......@@ -1982,13 +1982,16 @@ class CmsControllerWorkflowArticleRefusedTest extends CmsControllerWorkflowTestC
public function sentMailToUserWhenRefusedShouldContainsDefaultBody() {
Class_AdminVar::set('WORKFLOW_TEXT_MAIL_ARTICLE_REFUSED', 'L\'article "TITRE_ARTICLE" "URL_ARTICLE" a été refusé par "SAVED_BY_ARTICLE".');
$this->postArticleRefuser();
$this->assertEquals('L\'article "Katsuhiro Otomo en dédicace !" "http://localhost/ghislo/cms/articleview/id/4" a été refusé par "Mario Super".
$body_mail = quoted_printable_decode($this
->mock_transport
->getSentMails()[0]
->getBodyText()
->getContent());
$this->assertContains('L\'article "Katsuhiro Otomo en dédicace !', $body_mail);
$this->assertContains('/cms/articleview/id/4', $body_mail);
$this->assertContains('a été refusé par "Mario Super".
Votre article laisse à désirer, à revoir de fond en comble immédiatement.',
quoted_printable_decode($this
->mock_transport
->getSentMails()[0]
->getBodyText()
->getContent()));
$body_mail);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment