Replace expect()->array() with verify()->isArray()
codeception/verify 2.1 removed support for expect()->array() so we need to replace it with verify()->isArray(). [MAILPOET-5664]
This commit is contained in:
committed by
David Remer
parent
c41e5c7d0f
commit
a1f57361c5
@ -116,7 +116,7 @@ class SendingQueueTest extends \MailPoetTest {
|
||||
]);
|
||||
$response = $sendingQueue->add(['newsletter_id' => $this->newsletter->getId()]);
|
||||
$response = $response->getData();
|
||||
expect($response['errors'][0])->array();
|
||||
verify($response['errors'][0])->isArray();
|
||||
verify($response['errors'][0]['message'])->stringContainsString('some error');
|
||||
verify($response['errors'][0]['error'])->stringContainsString('bad_request');
|
||||
}
|
||||
|
Reference in New Issue
Block a user