AppserverIo\Appserver\Core\Scanner\AbstractScannerTest::testGetDistributionVersion PHP Method

testGetDistributionVersion() public method

Tests the getDistributionVersion() method.
public testGetDistributionVersion ( string $distribution, string | null $distVersion ) : 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
return void
    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));
    }