Rewrite LinksTest using Doctrine

[MAILPOET-5682]
This commit is contained in:
Rodrigo Primo
2023-11-13 11:36:46 -03:00
committed by Jan Jakeš
parent e3ff7ccaca
commit cd7a5c7943

View File

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