application = new Application($kernel); $container = self::$kernel->getContainer(); $this->application->add(new InstallCommand( $container->get('doctrine')->getConnection() )); } public function testCommandName(): void { $command = $this->application->find('kimai:install'); self::assertInstanceOf(InstallCommand::class, $command); } }