Replace expect()->startsWith() with verify()->stringStartsWith()

codeception/verify 2.1 removed support for expect()->startsWith() so we need
to replace it with verify()->stringStartsWith().

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 16:38:52 -03:00
committed by David Remer
parent a1f57361c5
commit 4bc4e9b254
10 changed files with 11 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ class SegmentsResponseBuilderTest extends \MailPoetTest {
verify($response)->isArray();
verify($response[0]['name'])->equals($name);
verify($response[0]['type'])->equals(SegmentEntity::TYPE_DEFAULT);
expect($response[0]['subscribers_url'])->startsWith('http');
verify($response[0]['subscribers_url'])->stringStartsWith('http');
verify($response[0]['subscribers_count']['subscribed'])->equals('1');
}
}