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

@ -1,7 +1,8 @@
<?php
namespace MailPoet\Test\Cron\Workers\KeyCheck;
use Codeception\Util\Stub;
use Codeception\Stub;
use Codeception\Stub\Expected;
use MailPoet\Cron\Workers\KeyCheck\SendingServiceKeyCheck;
use MailPoet\Mailer\Mailer;
use MailPoet\Models\Setting;
@ -26,7 +27,7 @@ class SendingServiceKeyCheckTest extends \MailPoetTest {
array(
'checkMSSKey' => $response,
'storeMSSKeyAndState' => null,
'updateSubscriberCount' => Stub::once()
'updateSubscriberCount' => Expected::once()
),
$this
);