Replace expect()->hasNotKey() with verify()->arrayHasNotKey()

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

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 16:31:15 -03:00
committed by David Remer
parent 525495409c
commit c41e5c7d0f
6 changed files with 10 additions and 10 deletions

View File

@@ -128,7 +128,7 @@ class SettingsTest extends \MailPoetTest {
$response = $this->endpoint->get();
verify($response->status)->equals(APIResponse::STATUS_OK);
expect($response->data['some']['setting'])->hasNotKey('key');
verify($response->data['some']['setting'])->arrayHasNotKey('key');
verify($response->data['some']['setting']['new_key'])->true();
verify($response->data['some']['new_setting'])->true();
}