Replace expect()->stringContainsString() with verify()->stringContainsString()
codeception/verify 2.1 removed support for expect()->stringContainsString() so we need to replace it with verify()->stringContainsString(). [MAILPOET-5664]
This commit is contained in:
committed by
David Remer
parent
709be1d541
commit
0d2f6e0776
@ -651,7 +651,7 @@ class SubscribersTest extends \MailPoetTest {
|
||||
]);
|
||||
} catch (UnexpectedValueException $exception) {
|
||||
verify($exception->getHttpStatusCode())->equals(APIResponse::STATUS_BAD_REQUEST);
|
||||
expect($exception->getErrors()[Error::BAD_REQUEST])->stringContainsString('Invalid bulk action');
|
||||
verify($exception->getErrors()[Error::BAD_REQUEST])->stringContainsString('Invalid bulk action');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user