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:
Rodrigo Primo
2023-10-18 15:29:04 -03:00
committed by David Remer
parent 35c24fb324
commit 9adbf81a78
86 changed files with 311 additions and 311 deletions

View File

@@ -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),