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:
Rodrigo Primo
2023-10-18 16:36:04 -03:00
committed by David Remer
parent c41e5c7d0f
commit a1f57361c5
17 changed files with 61 additions and 61 deletions

View File

@ -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');
}