/**
* @param array<string, mixed> $mockInputValues
*
* @dataProvider dataProviderTestExecuteWhenInstallLockExists
*/
public function testExecuteWhenInstallLockExists(array
$mockInputValues): void
{ touch(__DIR__ . '/install.lock'
);
$systemInstallCmd =
$this->
prepareCommandInstance();
$refMethod = ReflectionHelper::
getMethod(SystemInstallCommand::
class, 'execute'
);
$result =
$refMethod->
invoke($systemInstallCmd,
$this->
getMockInput($mockInputValues),
$this->
createMock(OutputInterface::
class));
static::
assertEquals($result, Command::FAILURE
);
} public static function dataProviderTestExecuteWhenInstallLockExists(): \Generator
{ yield 'Data provider for test execute failure' =>
[