From 9966fd19fcf5fa841193ea37aa87a812a3957da1 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 28 Nov 2024 12:53:33 +0100 Subject: [PATCH] fixup! test:(PasswordConfirmationMiddleware): Fix constructor call --- .../Security/PasswordConfirmationMiddlewareTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php index 0943952c511a2..7fd4ff371bc31 100644 --- a/tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php +++ b/tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php @@ -53,6 +53,11 @@ class PasswordConfirmationMiddlewareTest extends TestCase { /** @var ITimeFactory&\PHPUnit\Framework\MockObject\MockObject */ private $timeFactory; private IProvider|\PHPUnit\Framework\MockObject\MockObject $tokenProvider; + /** @var IRequest&\PHPUnit\Framework\MockObject\MockObject */ + private IRequest $request; + /** @var Manager&\PHPUnit\Framework\MockObject\MockObject */ + private Manager $userManager; + protected function setUp(): void { $this->reflector = new ControllerMethodReflector(); @@ -61,6 +66,8 @@ protected function setUp(): void { $this->user = $this->createMock(IUser::class); $this->timeFactory = $this->createMock(ITimeFactory::class); $this->tokenProvider = $this->createMock(IProvider::class); + $this->request = $this->createMock(IRequest::class); + $this->userManager = $this->createMock(Manager::class); $this->controller = new PasswordConfirmationMiddlewareController( 'test', $this->createMock(IRequest::class) @@ -72,6 +79,8 @@ protected function setUp(): void { $this->userSession, $this->timeFactory, $this->tokenProvider, + $this->request, + $this->userManager, ); }