Replace expect()->isInstanceOf() with verify()->instanceOf()

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

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 16:08:25 -03:00
committed by David Remer
parent 5bc5b5ebd2
commit 1865fc8930
39 changed files with 146 additions and 146 deletions

View File

@@ -38,7 +38,7 @@ class ErrorHandlerTest extends \MailPoetUnitTest {
'key' => 'value',
]));
expect($response)->isInstanceOf(ErrorResponse::class);
verify($response)->instanceOf(ErrorResponse::class);
verify($response->status)->equals($expectedCode);
verify($response->errors)->equals([['error' => 'key', 'message' => 'value']]);
}