Use NewsletterEntity instead of Newsletter model in Links

[MAILPOET-4363]
This commit is contained in:
Rodrigo Primo
2022-08-27 16:11:15 -03:00
committed by Aschepikov
parent 9a92068d5b
commit 168ce20a40
3 changed files with 7 additions and 7 deletions

View File

@@ -38,10 +38,9 @@ class LinksTest extends \MailPoetTest {
'hash' => 'some_hash',
],
];
$newsletter = (object)['id' => $this->newsletter->getId()];
$queue = (object)['id' => $this->queue->getId()];
$this->links->saveLinks($links, $newsletter, $queue);
$this->links->saveLinks($links, $this->newsletter, $queue);
$newsletterLink = $this->newsletterLinkRepository->findOneBy(['hash' => $links[0]['hash']]);
assert($newsletterLink instanceof NewsletterLinkEntity);