Skip to content

Commit

Permalink
mocked coreparametershelper
Browse files Browse the repository at this point in the history
  • Loading branch information
aarohiprasad committed Feb 18, 2025
1 parent 31edbe3 commit ca657be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/Functional/EventSubscriber/CallbackSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace MauticPlugin\SparkpostBundle\Tests\Functional\EventSubscriber;

use Mautic\CoreBundle\Helper\CoreParametersHelper;
use Mautic\CoreBundle\Helper\DateTimeHelper;
use Mautic\CoreBundle\Test\MauticMysqlTestCase;
use Mautic\EmailBundle\EmailEvents;
Expand Down Expand Up @@ -236,9 +237,10 @@ public function testProcessCallbackRequestWhenSoftBounce(): void
$dispatcher = new EventDispatcher();

$transportCallback = $this->getMockBuilder(TransportCallback::class)->disableOriginalConstructor()->getMock();
$coreParametersHelper = $this->getMockBuilder(CoreParametersHelper::class)->disableOriginalConstructor()->getMock();
$subscriber = new CallbackSubscriber(
$transportCallback,
new \Mautic\CoreBundle\Helper\CoreParametersHelper()
$coreParametersHelper
);

$dispatcher->addSubscriber($subscriber);
Expand Down

0 comments on commit ca657be

Please sign in to comment.