Fix tests

[MAILPOET-2080]
This commit is contained in:
Ján Mikláš
2019-05-21 15:16:01 +02:00
committed by M. Shull
parent ab7f18c274
commit a55d2fc69f

View File

@ -49,6 +49,17 @@ class NewslettersTest extends \MailPoetTest {
'body' => Fixtures::get('newsletter_body_template'),
'type' => Newsletter::TYPE_NOTIFICATION,
]);
NewsletterOptionField::createOrUpdate(
[
'name' => 'isScheduled',
'newsletter_type' => 'standard',
]);
NewsletterOptionField::createOrUpdate(
[
'name' => 'scheduledAt',
'newsletter_type' => 'standard',
]);
}
function testItKeepsUnsentNewslettersAtTheTopWhenSortingBySentAtDate() {