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:
Rodrigo Primo
2023-10-18 16:24:00 -03:00
committed by David Remer
parent e4136fee8c
commit 9b56fdc688
92 changed files with 376 additions and 376 deletions

View File

@@ -70,7 +70,7 @@ class FormsTest extends \MailPoetTest {
verify($response->meta)->arrayHasKey('groups');
verify($response->meta['count'])->equals(3);
expect($response->data)->count(3);
verify($response->data)->arrayCount(3);
verify($response->data[0]['name'])->equals('Form 1');
verify($response->data[1]['name'])->equals('Form 2');
verify($response->data[2]['name'])->equals('Form 3');