Skip to content

Commit

Permalink
fixup! test:(PasswordConfirmationMiddleware): Fix constructor call
Browse files Browse the repository at this point in the history
  • Loading branch information
artonge committed Nov 28, 2024
1 parent 2585008 commit 9966fd1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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)
Expand All @@ -72,6 +79,8 @@ protected function setUp(): void {
$this->userSession,
$this->timeFactory,
$this->tokenProvider,
$this->request,
$this->userManager,
);
}

Expand Down

0 comments on commit 9966fd1

Please sign in to comment.