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

@@ -37,7 +37,7 @@ class SendingServiceKeyCheckTest extends \MailPoetTest {
// normally next run is scheduled at the next day in first six hours
$nextRun = $this->worker->getNextRunDate();
$nextDay = Carbon::now()->startOfDay()->addDay()->addHours(6);
expect($nextRun->format('Y-m-d'))->equals($nextDay->format('Y-m-d'));
verify($nextRun->format('Y-m-d'))->equals($nextDay->format('Y-m-d'));
expect($nextRun)->lessThan($nextDay);
// when pending key approval, next run is scheduled in an hour
@@ -101,7 +101,7 @@ class SendingServiceKeyCheckTest extends \MailPoetTest {
$this->equalTo($response)
);
$this->setMailPoetSendingMethod();
expect($this->worker->checkKey())->equals($response);
verify($this->worker->checkKey())->equals($response);
}
private function setMailPoetSendingMethod() {