add(new ResetTestCommand( $this->createMock(EntityManagerInterface::class), $this->createMock(UserPasswordHasherInterface::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), $this->createMock(UserPasswordHasherInterface::class), 'prod' ); self::assertFalse($sut->isEnabled()); } }