Replace expect()->true() with verify()->true()
codeception/verify 2.1 removed support for expect()->true() so we need to replace it with verify()->true(). [MAILPOET-5664]
This commit is contained in:
committed by
David Remer
parent
35c24fb324
commit
9adbf81a78
@@ -30,7 +30,7 @@ class SendingServiceKeyCheckTest extends \MailPoetTest {
|
||||
public function testItRequiresMailPoetMethodToBeSetUp() {
|
||||
expect($this->worker->checkProcessingRequirements())->false();
|
||||
$this->setMailPoetSendingMethod();
|
||||
expect($this->worker->checkProcessingRequirements())->true();
|
||||
verify($this->worker->checkProcessingRequirements())->true();
|
||||
}
|
||||
|
||||
public function testItRunsEveryHourWhenKeyPendingApproval() {
|
||||
@@ -56,7 +56,7 @@ class SendingServiceKeyCheckTest extends \MailPoetTest {
|
||||
|
||||
public function testItResumesSendingWhenKeyApproved() {
|
||||
MailerLog::pauseSending(MailerLog::getMailerLog());
|
||||
expect(MailerLog::isSendingPaused())->true();
|
||||
verify(MailerLog::isSendingPaused())->true();
|
||||
|
||||
$servicesChecker = $this->make(ServicesChecker::class, [
|
||||
'isMailPoetAPIKeyPendingApproval' => Stub::consecutive(true, false),
|
||||
|
Reference in New Issue
Block a user