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

@@ -81,7 +81,7 @@ class ModelTest extends \MailPoetTest {
$model->save();
$errors = $model->getErrors();
expect($errors)->hasKey(MPModel::DUPLICATE_RECORD);
expect($errors[MPModel::DUPLICATE_RECORD])->stringContainsString('Please specify a different "name".');
verify($errors[MPModel::DUPLICATE_RECORD])->stringContainsString('Please specify a different "name".');
}
public function _after() {