Skip to content

Commit

Permalink
BOOKING-289: Applied coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Nov 13, 2023
1 parent 29fbef2 commit 654bf87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
1 change: 0 additions & 1 deletion tests/Api/BookingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use App\Service\BookingServiceInterface;
use App\Service\MicrosoftGraphBookingService;
use App\Service\NotificationServiceInterface;
use App\Service\UserBookingCacheServiceInterface;
use App\Service\WebformService;
use App\Tests\AbstractBaseApiTestCase;
use App\Utils\ValidationUtils;
Expand Down
21 changes: 2 additions & 19 deletions tests/Handler/AddBookingToCacheHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,14 @@

namespace App\Tests\Handler;

use App\Entity\Main\ApiKeyUser;
use App\Entity\Main\Booking;
use App\Entity\Resources\AAKResource;
use App\Message\AddBookingToCacheMessage;
use App\Message\CreateBookingMessage;
use App\Message\WebformSubmitMessage;
use App\MessageHandler\AddBookingToCacheHandler;
use App\MessageHandler\CreateBookingHandler;
use App\MessageHandler\WebformSubmitHandler;
use App\Repository\Resources\AAKResourceRepository;
use App\Repository\Resources\CvrWhitelistRepository;
use App\Security\Voter\BookingVoter;
use App\Service\BookingServiceInterface;
use App\Service\MicrosoftGraphBookingService;
use App\Service\NotificationServiceInterface;
use App\Service\UserBookingCacheServiceInterface;
use App\Service\WebformService;
use App\Tests\AbstractBaseApiTestCase;
use App\Utils\ValidationUtils;
use Psr\Log\LoggerInterface;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Security\Core\Security;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Twig\Environment;
use Zenstruck\Messenger\Test\InteractsWithMessenger;

class AddBookingToCacheHandlerTest extends AbstractBaseApiTestCase
{
Expand All @@ -35,7 +18,7 @@ public function testHandlerVoter(): void
$bookingServiceMock = $this->getMockBuilder(BookingServiceInterface::class)
->disableOriginalConstructor()
->getMock();
$bookingServiceMock->expects($this->exactly(1))->method('getBookingIdFromICalUid')->willReturn("abcde");
$bookingServiceMock->expects($this->exactly(1))->method('getBookingIdFromICalUid')->willReturn('abcde');

$userBookingCacheServiceMock = $this->getMockBuilder(UserBookingCacheServiceInterface::class)
->disableOriginalConstructor()
Expand Down Expand Up @@ -71,7 +54,7 @@ public function testHandlerVoter(): void

$message = new AddBookingToCacheMessage(
$booking,
"12345"
'12345'
);

$handler->__invoke($message);
Expand Down

0 comments on commit 654bf87

Please sign in to comment.