Remove unnecessary premium key refresh when volume limit error happens
The limit is stored in and read from MSS key state and now we preserve state data even when the key becomes underprivileged. We don't need to refresh anything and also the checking underprivileged key would return 403 and no data about limits. [MAILPOET-5191]
This commit is contained in:
committed by
Veljko V
parent
48f1034180
commit
469b9bf85f
@@ -6,9 +6,7 @@ use Codeception\Stub;
|
||||
use MailPoet\Config\ServicesChecker;
|
||||
use MailPoet\Mailer\MailerError;
|
||||
use MailPoet\Mailer\Methods\ErrorMappers\MailPoetMapper;
|
||||
use MailPoet\Services\Bridge;
|
||||
use MailPoet\Services\Bridge\API;
|
||||
use MailPoet\Settings\SettingsController;
|
||||
use MailPoet\Util\License\Features\Subscribers;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
@@ -30,9 +28,7 @@ class MailPoetMapperTest extends \MailPoetUnitTest {
|
||||
},
|
||||
]);
|
||||
$this->mapper = new MailPoetMapper(
|
||||
Stub::make(Bridge::class),
|
||||
Stub::make(ServicesChecker::class),
|
||||
Stub::make(SettingsController::class),
|
||||
Stub::make(Subscribers::class),
|
||||
$wpFunctions
|
||||
);
|
||||
|
Reference in New Issue
Block a user