Replace expect()->array() with verify()->isArray()
codeception/verify 2.1 removed support for expect()->array() so we need to replace it with verify()->isArray(). [MAILPOET-5664]
This commit is contained in:
committed by
David Remer
parent
c41e5c7d0f
commit
a1f57361c5
@@ -92,12 +92,12 @@ class CustomFieldsTest extends \MailPoetTest {
|
||||
'date_type' => 'year_month_day',
|
||||
],
|
||||
]);
|
||||
expect($response)->array();
|
||||
verify($response)->isArray();
|
||||
verify($response)->arrayHasKey('id');
|
||||
verify($response)->arrayHasKey('name');
|
||||
verify($response)->arrayHasKey('type');
|
||||
verify($response)->arrayHasKey('params');
|
||||
expect($response['params'])->array();
|
||||
verify($response['params'])->isArray();
|
||||
}
|
||||
|
||||
public function testItFailsToCreateNewCustomField() {
|
||||
|
Reference in New Issue
Block a user