Replace expect()->false() with verify()->false()

codeception/verify 2.1 removed support for expect()->false() so we need
to replace it with verify()->false().

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 15:30:49 -03:00
committed by David Remer
parent 9adbf81a78
commit 997f635d4a
73 changed files with 226 additions and 226 deletions

View File

@@ -157,7 +157,7 @@ class ServicesTest extends \MailPoetTest {
public function testItDoesNotPauseSendingWhenMSSKeyValidAndApproved() {
$this->settings->set(Mailer::MAILER_CONFIG_SETTING_NAME, ['method' => Mailer::METHOD_MAILPOET]);
expect(MailerLog::isSendingPaused())->false();
verify(MailerLog::isSendingPaused())->false();
$bridge = $this->make(
Bridge::class,
@@ -173,12 +173,12 @@ class ServicesTest extends \MailPoetTest {
$servicesEndpoint = $this->createServicesEndpointWithMocks(['bridge' => $bridge]);
$response = $servicesEndpoint->checkMSSKey($this->data);
verify($response->status)->equals(APIResponse::STATUS_OK);
expect(MailerLog::isSendingPaused())->false();
verify(MailerLog::isSendingPaused())->false();
}
public function testItPausesSendingWhenMSSKeyValidButNotApproved() {
$this->settings->set(Mailer::MAILER_CONFIG_SETTING_NAME, ['method' => Mailer::METHOD_MAILPOET]);
expect(MailerLog::isSendingPaused())->false();
verify(MailerLog::isSendingPaused())->false();
$bridge = $this->make(
Bridge::class,
@@ -221,7 +221,7 @@ class ServicesTest extends \MailPoetTest {
$servicesEndpoint = $this->createServicesEndpointWithMocks(['bridge' => $bridge]);
$response = $servicesEndpoint->checkMSSKey($this->data);
verify($response->status)->equals(APIResponse::STATUS_OK);
expect(MailerLog::isSendingPaused())->false();
verify(MailerLog::isSendingPaused())->false();
}
public function testItRespondsWithErrorIfNoPremiumKeyIsGiven() {