8 use \Magento\Framework\Shell\CommandRendererBackground;
26 $this->osInfo = $this->getMockBuilder(\
Magento\Framework\OsInfo::class)->getMock();
36 $this->osInfo->expects($this->once())
38 ->will($this->returnValue($isWindows));
43 $commandRenderer->render($this->testCommand)
55 'windows' => [
true,
'start /B "magento background task" ' . $this->testCommand .
' 2>&1'],
56 'unix' => [
false, $this->testCommand .
' > /dev/null &'],
commandPerOsTypeDataProvider()
testRender($isWindows, $expectedResults)