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

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

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 15:16:59 -03:00
committed by David Remer
parent 9e855c7964
commit afe378ba22
304 changed files with 3588 additions and 3588 deletions

View File

@@ -36,7 +36,7 @@ class SetupTest extends \MailPoetTest {
$cronActionScheduler = $this->diContainer->get(ActionScheduler::class);
$router = new Setup($wpStub, new Activator($this->connection, $settings, $populator, $wpStub, $migrator, $cronActionScheduler));
$response = $router->reset();
expect($response->status)->equals(APIResponse::STATUS_OK);
verify($response->status)->equals(APIResponse::STATUS_OK);
$settings = SettingsController::getInstance();
$signupConfirmation = $settings->fetch('signup_confirmation.enabled');
@@ -44,9 +44,9 @@ class SetupTest extends \MailPoetTest {
$captcha = $settings->fetch('captcha');
$captchaType = $captchaRenderer->isSupported() ? CaptchaConstants::TYPE_BUILTIN : CaptchaConstants::TYPE_DISABLED;
expect($captcha['type'])->equals($captchaType);
expect($captcha['recaptcha_site_token'])->equals('');
expect($captcha['recaptcha_secret_token'])->equals('');
verify($captcha['type'])->equals($captchaType);
verify($captcha['recaptcha_site_token'])->equals('');
verify($captcha['recaptcha_secret_token'])->equals('');
$woocommerceOptinOnCheckout = $settings->fetch('woocommerce.optin_on_checkout');
expect($woocommerceOptinOnCheckout['enabled'])->true();