Only processes queues when newsletter exists and is active/sending

This commit is contained in:
Vlad
2017-06-02 12:03:34 -04:00
parent ea831ef160
commit 344990d59e
6 changed files with 141 additions and 24 deletions

View File

@@ -43,6 +43,7 @@ class SendingQueueTest extends MailPoetTest {
$this->subscriber_segment->save();
$this->newsletter = Newsletter::create();
$this->newsletter->type = Newsletter::TYPE_STANDARD;
$this->newsletter->status = Newsletter::STATUS_ACTIVE;
$this->newsletter->subject = Fixtures::get('newsletter_subject_template');
$this->newsletter->body = Fixtures::get('newsletter_body_template');
$this->newsletter->save();