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