Simplify problematic test
MAILPOET-5145
This commit is contained in:
committed by
John Oleksowicz
parent
c75bc388c9
commit
33f744e9be
@@ -957,7 +957,6 @@ class SendingQueueTest extends \MailPoetTest {
|
||||
}
|
||||
|
||||
public function testItDoesNotSendToTrashedSubscribers() {
|
||||
$this->markTestSkipped('calls before and after manually');
|
||||
$sendingQueueWorker = $this->sendingQueueWorker;
|
||||
$sendingQueueWorker->mailerTask = $this->construct(
|
||||
MailerTask::class,
|
||||
@@ -965,17 +964,7 @@ class SendingQueueTest extends \MailPoetTest {
|
||||
['send' => $this->mailerTaskDummyResponse]
|
||||
);
|
||||
|
||||
// newsletter is sent to existing subscriber
|
||||
$sendingQueueWorker->process();
|
||||
$sendingQueue = $this->sendingQueuesRepository->findOneById($this->queue->id);
|
||||
$this->assertInstanceOf(SendingQueueEntity::class, $sendingQueue);
|
||||
$this->sendingQueuesRepository->refresh($sendingQueue);
|
||||
expect($sendingQueue->getCountTotal())->equals(1);
|
||||
|
||||
// newsletter is not sent to trashed subscriber
|
||||
$this->_after();
|
||||
$this->entityManager->clear();
|
||||
$this->_before();
|
||||
$subscriber = $this->subscriber;
|
||||
$subscriber->setDeletedAt(Carbon::now());
|
||||
$this->entityManager->flush();
|
||||
|
Reference in New Issue
Block a user