Replace expect()->hasKey() with verify()->arrayHasKey()

codeception/verify 2.1 removed support for expect()->hasKey() so we need
to replace it with verify()->arrayHasKey().

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 15:48:25 -03:00
committed by David Remer
parent eba025a345
commit a70067a34c
22 changed files with 88 additions and 88 deletions

View File

@@ -93,10 +93,10 @@ class CustomFieldsTest extends \MailPoetTest {
],
]);
expect($response)->array();
expect($response)->hasKey('id');
expect($response)->hasKey('name');
expect($response)->hasKey('type');
expect($response)->hasKey('params');
verify($response)->arrayHasKey('id');
verify($response)->arrayHasKey('name');
verify($response)->arrayHasKey('type');
verify($response)->arrayHasKey('params');
expect($response['params'])->array();
}