Remove subscriber count reporting from MSS key check worker
[MAILPOET-3868]
This commit is contained in:
committed by
Veljko V
parent
2d32e5013e
commit
c02cf639db
@@ -51,7 +51,6 @@ class SendingServiceKeyCheck extends KeyCheckWorker {
|
|||||||
$mssKey = $this->settings->get(Mailer::MAILER_CONFIG_SETTING_NAME)['mailpoet_api_key'];
|
$mssKey = $this->settings->get(Mailer::MAILER_CONFIG_SETTING_NAME)['mailpoet_api_key'];
|
||||||
$result = $this->bridge->checkMSSKey($mssKey);
|
$result = $this->bridge->checkMSSKey($mssKey);
|
||||||
$this->bridge->storeMSSKeyAndState($mssKey, $result);
|
$this->bridge->storeMSSKeyAndState($mssKey, $result);
|
||||||
$this->bridge->updateSubscriberCount($result);
|
|
||||||
|
|
||||||
$isPendingApproval = $this->servicesChecker->isMailPoetAPIKeyPendingApproval();
|
$isPendingApproval = $this->servicesChecker->isMailPoetAPIKeyPendingApproval();
|
||||||
if ($wasPendingApproval && !$isPendingApproval) {
|
if ($wasPendingApproval && !$isPendingApproval) {
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
namespace MailPoet\Test\Cron\Workers\KeyCheck;
|
namespace MailPoet\Test\Cron\Workers\KeyCheck;
|
||||||
|
|
||||||
use Codeception\Stub;
|
use Codeception\Stub;
|
||||||
use Codeception\Stub\Expected;
|
|
||||||
use MailPoet\Config\ServicesChecker;
|
use MailPoet\Config\ServicesChecker;
|
||||||
use MailPoet\Cron\CronWorkerScheduler;
|
use MailPoet\Cron\CronWorkerScheduler;
|
||||||
use MailPoet\Cron\Workers\KeyCheck\SendingServiceKeyCheck;
|
use MailPoet\Cron\Workers\KeyCheck\SendingServiceKeyCheck;
|
||||||
@@ -73,7 +72,6 @@ class SendingServiceKeyCheckTest extends \MailPoetTest {
|
|||||||
$bridge = $this->make(new Bridge, [
|
$bridge = $this->make(new Bridge, [
|
||||||
'checkMSSKey' => ['code' => Bridge::KEY_VALID],
|
'checkMSSKey' => ['code' => Bridge::KEY_VALID],
|
||||||
'storeMSSKeyAndState' => null,
|
'storeMSSKeyAndState' => null,
|
||||||
'updateSubscriberCount' => Expected::once(),
|
|
||||||
]);
|
]);
|
||||||
$worker->bridge = $bridge;
|
$worker->bridge = $bridge;
|
||||||
|
|
||||||
@@ -90,7 +88,6 @@ class SendingServiceKeyCheckTest extends \MailPoetTest {
|
|||||||
[
|
[
|
||||||
'checkMSSKey' => $response,
|
'checkMSSKey' => $response,
|
||||||
'storeMSSKeyAndState' => null,
|
'storeMSSKeyAndState' => null,
|
||||||
'updateSubscriberCount' => Expected::once(),
|
|
||||||
],
|
],
|
||||||
$this
|
$this
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user