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
@ -72,7 +72,7 @@ class CustomFieldsTest extends \MailPoetTest {
|
||||
public function testItCanGetAllCustomFields() {
|
||||
$response = $this->endpoint->getAll();
|
||||
verify($response->status)->equals(APIResponse::STATUS_OK);
|
||||
expect($response->data)->count(count($this->customFields));
|
||||
verify($response->data)->arrayCount(count($this->customFields));
|
||||
|
||||
foreach ($response->data as $customField) {
|
||||
verify($customField['name'])->notEmpty();
|
||||
|
Reference in New Issue
Block a user