Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix SparkpostTransportTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-navghane committed Jul 18, 2023
1 parent 6be8c27 commit 120e67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Unit/Mailer/Transport/SparkpostTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public function testSendEmail(): void
$sentMessageMock = $this->createMock(SentMessage::class);
$mauticMessageMock = $this->createMock(MauticMessage::class);
$responseMock = $this->createMock(ResponseInterface::class);
$clientMock = $this->createMock(HttpClientInterface::class);

$sentMessageMock->method('getOriginalMessage')
->willReturn($mauticMessageMock);
Expand All @@ -73,7 +72,8 @@ public function testSendEmail(): void
$responseMock->method('getStatusCode')
->willReturn(200);

$clientMock->method('request')
/** @phpstan-ignore-next-line */
$this->httpClientMock->method('request')
->willReturn($responseMock);

$response = $this->invokeInaccessibleMethod(
Expand Down

0 comments on commit 120e67e

Please sign in to comment.