Fix a test [MAILPOET-1069]

This commit is contained in:
stoletniy
2017-08-25 16:10:01 +03:00
parent cc5227ca0d
commit 4616cf67bf

View File

@@ -180,6 +180,8 @@ class NewsletterTest extends \MailPoetTest {
}
function testItSavesNewsletterPosts() {
$this->newsletter->type = Newsletter::TYPE_NOTIFICATION_HISTORY;
$this->newsletter->parent_id = $this->newsletter->id;
$result = $this->newsletter_task->preProcessNewsletter($this->newsletter, $this->queue);
$newsletter_post = NewsletterPost::where('newsletter_id', $this->newsletter->id)
->findOne();