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
@@ -505,9 +505,9 @@ class SubscribersTest extends \MailPoetTest {
|
||||
$this->getApi()->addSubscriber($subscriber);
|
||||
$this->fail('Failed to add subscriber exception should have been thrown.');
|
||||
} catch (\Exception $e) {
|
||||
expect($e->getMessage())->stringContainsString('Failed to add subscriber:');
|
||||
verify($e->getMessage())->stringContainsString('Failed to add subscriber:');
|
||||
// error message (converted to lowercase) returned by the model
|
||||
expect($e->getMessage())->stringContainsString('value is not a valid email address.');
|
||||
verify($e->getMessage())->stringContainsString('value is not a valid email address.');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user