fix: use stub instead of mock for unused handler

PHPUnit 13 warns about mock objects with no expectations. createStub() avoids the notice since the handler is never called in the expired-session test.
This commit is contained in:
Yisroel Baum 2026-05-17 10:06:35 +03:00
parent 722c5303df
commit a681d93f5d
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -125,7 +125,7 @@ class AuthMiddlewareTest extends TestCase
);
$request = $this->createRequestWithCookie('valid-token');
$handler = $this->createMock(RequestHandlerInterface::class);
$handler = $this->createStub(RequestHandlerInterface::class);
$this->middleware->process($request, $handler);