Update Codeception deprecated method calls

This commit is contained in:
Rostislav Wolny
2018-06-14 12:06:30 +02:00
parent f1462b5f3e
commit daeee55118
20 changed files with 132 additions and 112 deletions

View File

@ -2,7 +2,8 @@
namespace MailPoet\Test\Cron\Workers\KeyCheck;
use Carbon\Carbon;
use Codeception\Util\Stub;
use Codeception\Stub;
use Codeception\Stub\Expected;
use MailPoet\Models\ScheduledTask;
use MailPoet\Models\Setting;
use MailPoet\Services\Bridge;
@ -33,7 +34,7 @@ class KeyCheckWorkerTest extends \MailPoetTest {
'checkKey' => function () {
throw new \Exception;
},
'reschedule' => Stub::once()
'reschedule' => Expected::once()
),
$this
);
@ -47,7 +48,7 @@ class KeyCheckWorkerTest extends \MailPoetTest {
$this->worker,
array(
'checkKey' => array('code' => Bridge::CHECK_ERROR_UNAVAILABLE),
'reschedule' => Stub::once()
'reschedule' => Expected::once()
),
$this
);