public function detectMagento2InHtdocsSubfolder()
{
vfsStream::setup('root');
vfsStream::create(array('htdocs' => array('app' => array('autoload.php' => '', 'bootstrap.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_2, $helper->getMajorVersion());
}