Fix items not updating when rescheduling abandoned cart email [MAILPOET-2979]

This commit is contained in:
wxa
2020-10-06 21:22:58 +03:00
committed by Veljko V
parent 0dffed35e9
commit d9a0bccd1d
3 changed files with 20 additions and 4 deletions

View File

@@ -58,6 +58,12 @@ class SendingTest extends \MailPoetTest {
expect($queue->taskId)->equals($this->task->id);
}
public function testItCanBeCreatedFromScheduledTask() {
$sending = SendingTask::createFromScheduledTask($this->task);
$queue = $sending->queue();
expect($queue->taskId)->equals($this->task->id);
}
public function testItCanBeCreatedFromQueue() {
$sending = SendingTask::createFromQueue($this->queue);
$task = $sending->task();