Skip to content

Commit

Permalink
Merge branch '4.4' into 5.2
Browse files Browse the repository at this point in the history
* 4.4:
  clean up remaining event mocks
  • Loading branch information
xabbuh committed Jul 10, 2021
2 parents 9fc67f0 + af6f89f commit 2c544ab
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Tests/Firewall/GuardAuthenticationListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
Expand Down Expand Up @@ -322,14 +323,7 @@ protected function setUp(): void
$this->guardAuthenticatorHandler = $this->createMock(GuardAuthenticatorHandler::class);
$this->request = new Request([], [], [], [], [], []);

$this->event = $this->getMockBuilder(RequestEvent::class)
->disableOriginalConstructor()
->setMethods(['getRequest'])
->getMock();
$this->event
->expects($this->any())
->method('getRequest')
->willReturn($this->request);
$this->event = new RequestEvent($this->createMock(HttpKernelInterface::class), $this->request, HttpKernelInterface::MASTER_REQUEST);

$this->logger = $this->createMock(LoggerInterface::class);
$this->rememberMeServices = $this->createMock(RememberMeServicesInterface::class);
Expand Down

0 comments on commit 2c544ab

Please sign in to comment.