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

detectMagentoInStandardFolder() public method

    public function detectMagentoInStandardFolder()
    {
        vfsStream::setup('root');
        vfsStream::create(array('app' => array('Mage.php' => '')));
        $helper = $this->getHelper();
        $helper->detect(vfsStream::url('root'), array());
        $this->assertEquals(vfsStream::url('root'), $helper->getRootFolder());
        $this->assertEquals(\N98\Magento\Application::MAGENTO_MAJOR_VERSION_1, $helper->getMajorVersion());
    }