public testGetRestartCommand ( string $distribution, string | null $distVersion, string $command ) : void | ||
$distribution | string | The OS to return the restart command for |
$distVersion | string | null | Version of the operating system to get the restart command for |
$command | string | The command expected as result |
return | void |
public function testGetRestartCommand($distribution, $distVersion, $command)
{
// mock the configuration
$mockScanner = $this->getMockForAbstractClass('AppserverIo\\Appserver\\Core\\Scanner\\AbstractScanner', array($this->getMockInitialContext(), 'TestScanner'));
// check that the cache directory has been initialized successfully
$this->assertSame($command, $mockScanner->getRestartCommand($distribution, $distVersion));
}