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

@@ -51,7 +51,7 @@ class SegmentsResponseBuilderTest extends \MailPoetTest {
$responseBuilder = $di->get(SegmentsResponseBuilder::class);
$response = $responseBuilder->buildForListing([$segment]);
expect($response)->array();
verify($response)->isArray();
verify($response[0]['name'])->equals($name);
verify($response[0]['type'])->equals(SegmentEntity::TYPE_DEFAULT);
expect($response[0]['subscribers_url'])->startsWith('http');