application = new Application($kernel); $loginLinkHandler = $this->createMock(LoginLinkHandlerInterface::class); $userRepository = $this->createMock(UserRepository::class); $requestStack = $this->createMock(RequestStack::class); $this->application->add(new UserLoginLinkCommand($loginLinkHandler, $userRepository, $requestStack)); } public function testCommandName(): void { $application = $this->application; $command = $application->find('kimai:user:login-link'); self::assertInstanceOf(UserLoginLinkCommand::class, $command); } }