Introduce phpstan-type for MailerLog data

[MAILPOET-4122]
This commit is contained in:
David Remer
2022-03-09 08:55:43 +02:00
committed by Veljko V
parent 53da8bf999
commit ac52f2af99
7 changed files with 158 additions and 55 deletions

View File

@ -14,7 +14,8 @@ use MailPoet\Settings\SettingsController;
class MailerTest extends \MailPoetTest {
public function testItResumesSending() {
// create mailer log with a "paused" status
$mailerLog = ['status' => MailerLog::STATUS_PAUSED];
$mailerLog = MailerLog::getMailerLog();
$mailerLog['status'] = MailerLog::STATUS_PAUSED;
MailerLog::updateMailerLog($mailerLog);
$mailerLog = MailerLog::getMailerLog();
expect($mailerLog['status'])->equals(MailerLog::STATUS_PAUSED);