N98\Magento\Command\TestCase::getTestMagentoRoot PHP Method

getTestMagentoRoot() public method

getter for the magento root directory of the test-suite
See also: ApplicationTest::testExecute
public getTestMagentoRoot ( ) : string
return string
    public function getTestMagentoRoot()
    {
        if ($this->root) {
            return $this->root;
        }
        $varname = 'N98_MAGERUN_TEST_MAGENTO_ROOT';
        $basename = '.n98-magerun';
        $root = self::getTestMagentoRootFromEnvironment($varname, $basename);
        if (null === $root) {
            $this->markTestSkipped("Please specify environment variable {$varname} with path to your test magento installation!");
        }
        return $this->root = $root;
    }