Rewrite LinksTest using Doctrine
[MAILPOET-5682]
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user