N98\Util\Console\Helper\MagentoHelper::detectMagentoInHtdocsSubfolder PHP 메소드

detectMagentoInHtdocsSubfolder() 공개 메소드

    public function detectMagentoInHtdocsSubfolder()
    {
        vfsStream::setup('root');
        vfsStream::create(array('htdocs' => array('app' => array('Mage.php' => ''))));
        $helper = $this->getHelper();
        // vfs cannot resolve relative path so we do 'root/htdocs' etc.
        $helper->detect(vfsStream::url('root'), array(vfsStream::url('root/www'), vfsStream::url('root/public'), vfsStream::url('root/htdocs')));
        $this->assertEquals(vfsStream::url('root/htdocs'), $helper->getRootFolder());
        $this->assertEquals(\N98\Magento\Application::MAGENTO_MAJOR_VERSION_1, $helper->getMajorVersion());
    }