From 6ad48a116e3912b65edb635270bd08e39febe40c Mon Sep 17 00:00:00 2001 From: David Remer Date: Thu, 27 Jan 2022 16:03:23 +0200 Subject: [PATCH] Remove dispensable comment --- .../SubscriberSubscribeControllerUnitTest.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/mailpoet/tests/unit/Subscribers/SubscriberSubscribeControllerUnitTest.php b/mailpoet/tests/unit/Subscribers/SubscriberSubscribeControllerUnitTest.php index 21b5090f61..9c7ddbd35a 100644 --- a/mailpoet/tests/unit/Subscribers/SubscriberSubscribeControllerUnitTest.php +++ b/mailpoet/tests/unit/Subscribers/SubscriberSubscribeControllerUnitTest.php @@ -86,7 +86,7 @@ class SubscriberSubscribeControllerUnitTest extends \MailPoetUnitTest { $subscriberActions = Stub::makeEmpty( SubscriberActions::class, [ - 'subscribe' => \Codeception\Stub\Expected::never(), + 'subscribe' => Expected::never(), ] ); $subscriptionUrlFactory = Stub::makeEmpty(SubscriptionUrlFactory::class); @@ -125,13 +125,13 @@ class SubscriberSubscribeControllerUnitTest extends \MailPoetUnitTest { $statisticsFormsRepository = Stub::makeEmpty( StatisticsFormsRepository::class, [ - 'subscribe' => \Codeception\Stub\Expected::never(), + 'subscribe' => Expected::never(), ] ); $wp = Stub::make( WPFunctions::class, [ - 'doAction' => \Codeception\Stub\Expected::never(), + 'doAction' => Expected::never(), ], $this ); @@ -172,7 +172,7 @@ class SubscriberSubscribeControllerUnitTest extends \MailPoetUnitTest { $subscriberActions = Stub::makeEmpty( SubscriberActions::class, [ - 'subscribe' => \Codeception\Stub\Expected::never(), + 'subscribe' => Expected::never(), ] ); $expectedRedirectLink = 'redirect'; @@ -229,13 +229,13 @@ class SubscriberSubscribeControllerUnitTest extends \MailPoetUnitTest { $statisticsFormsRepository = Stub::makeEmpty( StatisticsFormsRepository::class, [ - 'subscribe' => \Codeception\Stub\Expected::never(), + 'subscribe' => Expected::never(), ] ); $wp = Stub::make( WPFunctions::class, [ - 'doAction' => \Codeception\Stub\Expected::never(), + 'doAction' => Expected::never(), ], $this ); @@ -371,10 +371,6 @@ class SubscriberSubscribeControllerUnitTest extends \MailPoetUnitTest { ]); } - /** - * @TODO Make Captcha validation - * @TODO Run the test with different valid data sets to cover different captcha types - */ public function testSubscribeSuccess() { $captchaSessionId = 'captcha_session_id';