Save settings on key verification to prevent data loss

[MAILPOET-2991]
This commit is contained in:
Jan Jakeš
2020-06-25 10:25:15 +02:00
committed by Veljko V
parent 94cabf2100
commit 136b1d4588
4 changed files with 10 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ class SettingsTest extends \MailPoetTest {
new Bridge,
$this->make(AuthorizedEmailsController::class, ['onSettingsSave' => true ]),
$this->make(TransactionalEmails::class),
$this->make(ServicesChecker::class)
$this->make(ServicesChecker::class, ['isMailPoetAPIKeyPendingApproval' => false])
);
}
@@ -70,7 +70,7 @@ class SettingsTest extends \MailPoetTest {
$this->make(Bridge::class, ['onSettingsSave' => Expected::once()]),
$this->make(AuthorizedEmailsController::class, ['onSettingsSave' => Expected::once()]),
$this->make(TransactionalEmails::class),
$this->make(ServicesChecker::class)
$this->make(ServicesChecker::class, ['isMailPoetAPIKeyPendingApproval' => false])
);
$response = $this->endpoint->set(/* missing data */);