We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826f053 commit 1e8f3b4Copy full SHA for 1e8f3b4
tests/EventListener/LoginListenerTest.php
@@ -298,6 +298,18 @@ public function __toString(): string
298
}
299
300
301
+ public function testHandleKernelRequestEventDoesNothingIfRequestIsForStatelessRoute(): void
302
+ {
303
+ $this->tokenStorage->expects($this->never())
304
+ ->method('getToken');
305
+
306
+ $this->listener->handleKernelRequestEvent(new RequestEvent(
307
+ $this->createMock(HttpKernelInterface::class),
308
+ new Request(attributes: ['_stateless' => true]),
309
+ HttpKernelInterface::SUB_REQUEST
310
+ ));
311
+ }
312
313
public function testHandleKernelRequestEventDoesNothingIfRequestIsNotMain(): void
314
{
315
$this->tokenStorage->expects($this->never())
0 commit comments