'test']); $application = new Application($kernel); $application->add(new CreateReleaseCommand(realpath(__DIR__ . '/../../'), 'test')); $command = $application->find('kimai:create-release'); self::assertTrue($command->isEnabled()); self::assertInstanceOf(CreateReleaseCommand::class, $command); } public function testCommandNameIsNotAvailableInProd() { $command = new CreateReleaseCommand(realpath(__DIR__ . '/../../'), 'prod'); self::assertFalse($command->isEnabled()); } }