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

@@ -90,7 +90,7 @@ class DynamicSegmentsResponseBuilderTest extends \MailPoetTest {
verify($response[0]['name'])->equals($name);
verify($response[0]['description'])->equals($description);
verify($response[0]['type'])->equals(SegmentEntity::TYPE_DYNAMIC);
expect($response[0]['subscribers_url'])->startsWith('http');
verify($response[0]['subscribers_url'])->stringStartsWith('http');
verify($response[0]['count_all'])->equals(1);
verify($response[0]['count_subscribed'])->equals(1);