Fix integration tests to work with updated codeception/verify
[MAILPOET-3203]
This commit is contained in:
committed by
Veljko V
parent
e85b4c6fec
commit
54727ad9a2
@@ -65,7 +65,7 @@ class MailChimpTest extends \MailPoetTest {
|
||||
$lists = $mailchimp->getLists();
|
||||
$this->fail('MailChimp getLists() did not throw an exception');
|
||||
} catch (\Exception $e) {
|
||||
expect($e->getMessage())->contains('Invalid API Key');
|
||||
expect($e->getMessage())->stringContainsString('Invalid API Key');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,14 +88,14 @@ class MailChimpTest extends \MailPoetTest {
|
||||
$this->mailchimp->getSubscribers();
|
||||
$this->fail('MailChimp getSubscribers() did not throw an exception');
|
||||
} catch (\Exception $e) {
|
||||
expect($e->getMessage())->contains('Did not find any valid lists');
|
||||
expect($e->getMessage())->stringContainsString('Did not find any valid lists');
|
||||
}
|
||||
|
||||
try {
|
||||
$this->mailchimp->getSubscribers([12]);
|
||||
$this->fail('MailChimp getSubscribers() did not throw an exception');
|
||||
} catch (\Exception $e) {
|
||||
expect($e->getMessage())->contains('Did not find any valid lists');
|
||||
expect($e->getMessage())->stringContainsString('Did not find any valid lists');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ class MailChimpTest extends \MailPoetTest {
|
||||
$this->fail('MailChimp getSubscribers() did not throw an exception');
|
||||
} catch (\Exception $e) {
|
||||
expect($e->getMessage())
|
||||
->contains('The information received from MailChimp is too large for processing');
|
||||
->stringContainsString('The information received from MailChimp is too large for processing');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user