Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
Signed-off-by: MarioRadu <[email protected]>
  • Loading branch information
MarioRadu committed Nov 29, 2024
1 parent 5224a41 commit 44910ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/Unit/Contact/Service/MessageServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace FrontendTest\Unit\Contact\Service;

use Dot\Mail\Email;
use Dot\Mail\Exception\MailException;
use Dot\Mail\Result\ResultInterface;
use Dot\Mail\Service\MailServiceInterface;
Expand Down Expand Up @@ -41,10 +42,12 @@ public function testProcessMessage(): void
$mailService = $this->createMock(MailServiceInterface::class);
$template = $this->createMock(TemplateRendererInterface::class);
$result = $this->createMock(ResultInterface::class);
$mail = $this->createMock(Email::class);

Check failure on line 45 in test/Unit/Contact/Service/MessageServiceTest.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Equals sign not aligned with surrounding assignments; expected 14 spaces but found 13 spaces

Check failure on line 45 in test/Unit/Contact/Service/MessageServiceTest.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Equals sign not aligned with surrounding assignments; expected 14 spaces but found 13 spaces

$mail->expects($this->once())->method('addFrom')->willReturn($mail);
$result->expects($this->once())->method('isValid')->willReturn(true);
$mailService->expects($this->once())->method('send')->willReturn($result);

$mailService->expects($this->any())->method('getMessage')->willReturn($mail);
$service = new MessageService(
$messageRepository,
$mailService,
Expand Down

0 comments on commit 44910ae

Please sign in to comment.