Use doctrine entity in posts test

[MAILPOET-3027]
This commit is contained in:
Pavel Dohnal
2021-03-11 10:30:00 +01:00
committed by Veljko V
parent caad80a09c
commit 82bf183a6c
3 changed files with 30 additions and 21 deletions

View File

@@ -48,6 +48,7 @@ class Posts {
$newsletterPost = new NewsletterPostEntity($parent, $postId);
$this->newsletterPostRepository->persist($newsletterPost);
}
$this->newsletterPostRepository->flush();
$this->loggerFactory->getLogger(LoggerFactory::TOPIC_POST_NOTIFICATIONS)->addInfo(
'extract and save posts - after',
['newsletter_id' => $newsletter->getId(), 'matched_posts_ids' => $matchedPostsIds]