Replace NewsletterLink with NewsletterLinkEntity in the class Links
It was also necessary to update two NewsletterTest tests, as after the change to Links::save(), having a queue ID set became mandatory (before it was not and one was not set properly in the mock SendingQueue object). [MAILPOET-3816]
This commit is contained in:
@@ -406,8 +406,10 @@ class NewsletterTest extends \MailPoetTest {
|
||||
->expects($this->once())
|
||||
->method('getErrors')
|
||||
->willReturn([]);
|
||||
$queueMock->id = $queue->id;
|
||||
$queueMock->taskId = $queue->taskId;
|
||||
$queueMock
|
||||
->expects($this->any())
|
||||
->method('__get')
|
||||
->will($this->onConsecutiveCalls($queue->id, $queue->taskId, $queue->id));
|
||||
|
||||
$sendingQueue = ORM::forTable(SendingQueue::$_table)->findOne($queue->id);
|
||||
assert($sendingQueue instanceof ORM);
|
||||
@@ -438,8 +440,10 @@ class NewsletterTest extends \MailPoetTest {
|
||||
->expects($this->once())
|
||||
->method('getErrors')
|
||||
->willReturn([]);
|
||||
$queueMock->id = $queue->id;
|
||||
$queueMock->taskId = $queue->taskId;
|
||||
$queueMock
|
||||
->expects($this->any())
|
||||
->method('__get')
|
||||
->will($this->onConsecutiveCalls($queue->id, $queue->taskId, $queue->id, $queue->newsletterRenderedBody));
|
||||
|
||||
// properly serialized object
|
||||
$sendingQueue = ORM::forTable(SendingQueue::$_table)->findOne($queue->id);
|
||||
|
Reference in New Issue
Block a user