Fix integration tests to work with updated codeception/verify

[MAILPOET-3203]
This commit is contained in:
Rostislav Wolny
2020-10-08 13:02:47 +02:00
committed by Veljko V
parent e85b4c6fec
commit 54727ad9a2
52 changed files with 266 additions and 265 deletions

View File

@ -56,7 +56,7 @@ class SendGridTest extends \MailPoetTest {
public function testItCanGenerateBody() {
$body = $this->mailer->getBody($this->newsletter, $this->subscriber, $this->extraParams);
expect($body['to'])->contains($this->subscriber);
expect($body['to'])->stringContainsString($this->subscriber);
expect($body['from'])->equals($this->sender['from_email']);
expect($body['fromname'])->equals($this->sender['from_name']);
expect($body['replyto'])->equals($this->replyTo['reply_to_email']);
@ -108,7 +108,7 @@ class SendGridTest extends \MailPoetTest {
);
expect($result['response'])->false();
expect($result['error'])->isInstanceOf(MailerError::class);
expect($result['error']->getMessage())->contains('SendGrid has returned an unknown error.');
expect($result['error']->getMessage())->stringContainsString('SendGrid has returned an unknown error.');
}
public function testItCanSend() {