/**
* Tests the getDistributionVersion() method.
*
* @param string $distribution The OS to return the restart command for
* @param string|null $distVersion Version of the operating system to get the restart command for
*
* @return void
*
* @dataProvider getDistributionVersionDataProvider
*/
public function testGetDistributionVersion($distribution, $distVersion)
{
// mock the configuration
$mockScanner = new MockAbstractScanner($this->getMockInitialContext(), 'TestScanner');
// check that the cache directory has been initialized successfully
$this->assertSame($distVersion, $mockScanner->testableGetDistributionVersion($distribution));
}