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