Newer
Older

Henri-Damien LAURENT
committed
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
$this->assertContains("adminpukapuka@example.com",current($this->_sent_mails)->getRecipients()[0]);
}
/** @test */
public function mailFromShouldBeMailAdminAtExampleDotCom() {
$this->assertContains("admin@example.com",current($this->_sent_mails)->getFrom());
}
public function expectedData() {
return [['Titre : Mireille l\'Abeille'],
['Annexe de retrait : BDM'],
['Julian Monsieur 00004'],
['Code Barre : 12341'],
['Type de Document : Livres'],
];
}
/**
* @test
* @dataProvider expectedData
*/
public function mailBodyShouldContainsContent($content) {
$this->assertContains($content,quoted_printable_decode(current($this->_sent_mails)->getBodyHtml(true)));
}