Replace expect()->count() with verify()->arrayCount()
codeception/verify 2.1 removed support for expect()->count() so we need to replace it with verify()->arrayCount(). [MAILPOET-5664]
This commit is contained in:
committed by
David Remer
parent
e4136fee8c
commit
9b56fdc688
@ -19,7 +19,7 @@ class AutomatedLatestContentTest extends \MailPoetTest {
|
||||
$response = $this->endpoint->getPostTypes();
|
||||
verify($response->data)->notEmpty();
|
||||
foreach ($response->data as $postType) {
|
||||
expect($postType)->count(2);
|
||||
verify($postType)->arrayCount(2);
|
||||
verify($postType['name'])->notEmpty();
|
||||
verify($postType['label'])->notEmpty();
|
||||
}
|
||||
|
Reference in New Issue
Block a user