From 33f744e9be7b2276e9f50a4c3f1b6f62fdbe61d5 Mon Sep 17 00:00:00 2001 From: John Oleksowicz Date: Thu, 30 Mar 2023 10:32:32 -0500 Subject: [PATCH] Simplify problematic test MAILPOET-5145 --- .../Cron/Workers/SendingQueue/SendingQueueTest.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mailpoet/tests/integration/Cron/Workers/SendingQueue/SendingQueueTest.php b/mailpoet/tests/integration/Cron/Workers/SendingQueue/SendingQueueTest.php index 1e7fb127a1..8a21d0ea8f 100644 --- a/mailpoet/tests/integration/Cron/Workers/SendingQueue/SendingQueueTest.php +++ b/mailpoet/tests/integration/Cron/Workers/SendingQueue/SendingQueueTest.php @@ -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();