add(new ResetDevelopmentCommand('test', $this->createMock(EntityManagerInterface::class))); $command = $application->find('kimai:reset-dev'); self::assertInstanceOf(ResetDevelopmentCommand::class, $command); } public function testCommandNameIsNotEnabledInProd() { $command = new ResetDevelopmentCommand('prod', $this->createMock(EntityManagerInterface::class)); self::assertFalse($command->isEnabled()); } }