Neos\FluidAdaptor\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameThrowsExceptionIfSpecifiedPartialRootPathIsNoDirectory PHP Method

getPartialPathAndFilenameThrowsExceptionIfSpecifiedPartialRootPathIsNoDirectory() public method

    public function getPartialPathAndFilenameThrowsExceptionIfSpecifiedPartialRootPathIsNoDirectory()
    {
        vfsStreamWrapper::register();
        mkdir('vfs://MyPartials');
        \file_put_contents('vfs://MyPartials/NotAFolder', 'foo');
        $this->standaloneView->setPartialRootPath('vfs://MyPartials/NotAFolder');
        $this->standaloneView->getTemplatePaths()->getPartialSource('SomePartial');
    }