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

@@ -40,7 +40,7 @@ class SetupTest extends \MailPoetTest {
$settings = SettingsController::getInstance();
$signupConfirmation = $settings->fetch('signup_confirmation.enabled');
expect($signupConfirmation)->true();
verify($signupConfirmation)->true();
$captcha = $settings->fetch('captcha');
$captchaType = $captchaRenderer->isSupported() ? CaptchaConstants::TYPE_BUILTIN : CaptchaConstants::TYPE_DISABLED;
@@ -49,9 +49,9 @@ class SetupTest extends \MailPoetTest {
verify($captcha['recaptcha_secret_token'])->equals('');
$woocommerceOptinOnCheckout = $settings->fetch('woocommerce.optin_on_checkout');
expect($woocommerceOptinOnCheckout['enabled'])->true();
verify($woocommerceOptinOnCheckout['enabled'])->true();
$hookName = 'mailpoet_setup_reset';
expect(WPHooksHelper::isActionDone($hookName))->true();
verify(WPHooksHelper::isActionDone($hookName))->true();
}
}