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:
committed by
David Remer
parent
525495409c
commit
c41e5c7d0f
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user