application = new Application($kernel); $encoder = $this->createMock(UserPasswordHasherInterface::class); $registry = $this->createMock(ManagerRegistry::class); $validator = $this->createMock(ValidatorInterface::class); $this->application->add(new KimaiImporterCommand($encoder, $registry, $validator)); } public function testCommandName() { $command = $this->application->find('kimai:import-v1'); self::assertInstanceOf(KimaiImporterCommand::class, $command); } }