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' =>
[ 'Mock method getOption from input' =>
[ 'force' => false,
'shopName' => 'Storefront',
'shopEmail' => 'admin@gmail.com',