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:
Rodrigo Primo
2023-10-18 15:42:09 -03:00
committed by David Remer
parent 709be1d541
commit 0d2f6e0776
70 changed files with 428 additions and 428 deletions

View File

@ -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');
}
}