N98\Util\Console\Helper\MagentoHelper::detectMagentoInModmanInfrastructure PHP Method

detectMagentoInModmanInfrastructure() public method

    public function detectMagentoInModmanInfrastructure()
    {
        vfsStream::setup('root');
        vfsStream::create(array('.basedir' => 'root/htdocs/magento_root', 'htdocs' => array('magento_root' => array('app' => array('Mage.php' => '')))));
        $helper = $this->getHelper();
        // vfs cannot resolve relative path so we do 'root/htdocs' etc.
        $helper->detect(vfsStream::url('root'));
        // Verify if this could be checked with more elegance
        $this->assertEquals(vfsStream::url('root/../root/htdocs/magento_root'), $helper->getRootFolder());
        $this->assertEquals(\N98\Magento\Application::MAGENTO_MAJOR_VERSION_1, $helper->getMajorVersion());
    }