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:
committed by
David Remer
parent
a1f57361c5
commit
4bc4e9b254
@@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user