application = new Application($kernel); $customers = $this->createMock(CustomerRepository::class); $projects = $this->createMock(ProjectRepository::class); $teams = $this->createMock(TeamRepository::class); $users = $this->createMock(UserRepository::class); $configuration = $this->createMock(FormConfiguration::class); $this->application->add(new ImportCustomerCommand($customers, $projects, $teams, $users, $configuration)); } public function testCommandName() { $command = $this->application->find('kimai:import:customer'); self::assertInstanceOf(ImportCustomerCommand::class, $command); } }