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

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

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 16:02:10 -03:00
committed by David Remer
parent 5d839277d6
commit 00c5250cff
21 changed files with 68 additions and 68 deletions

View File

@@ -50,8 +50,8 @@ class CaptchaRendererTest extends \MailPoetTest {
$firstCaptcha = $this->session->getCaptchaHash();
$secondImage = $this->testee->renderImage(null, null, $sessionId, true);
$secondCaptcha = $this->session->getCaptchaHash();
expect($secondImage)->notEquals($firstImage);
expect($firstCaptcha['phrase'])->notEquals($secondCaptcha['phrase']);
verify($secondImage)->notEquals($firstImage);
verify($firstCaptcha['phrase'])->notEquals($secondCaptcha['phrase']);
}
/**
@@ -64,8 +64,8 @@ class CaptchaRendererTest extends \MailPoetTest {
$firstCaptcha = $this->session->getCaptchaHash();
$secondAudio = $this->testee->renderAudio($sessionId, true);
$secondCaptcha = $this->session->getCaptchaHash();
expect($fistAudio)->notEquals($secondAudio);
expect($firstCaptcha['phrase'])->notEquals($secondCaptcha['phrase']);
verify($fistAudio)->notEquals($secondAudio);
verify($firstCaptcha['phrase'])->notEquals($secondCaptcha['phrase']);
}
/**