Neos\FluidAdaptor\Tests\Unit\View\TemplatePathsTest::getTemplatePathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory PHP Method

getTemplatePathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory() public method

    public function getTemplatePathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory()
    {
        vfsStreamWrapper::register();
        mkdir('vfs://MyTemplates/NotAFile');
        $paths = ['vfs://NonExistentDir/UnknownFile.html', 'vfs://MyTemplates/NotAFile'];
        $templatePaths = $this->getAccessibleMock(TemplatePaths::class, ['expandGenericPathPattern'], [['templatePathAndFilenamePattern' => '@templateRoot/@subpackage/@controller/@action.@format']], '', true);
        $templatePaths->expects($this->once())->method('expandGenericPathPattern')->with('@templateRoot/@subpackage/@controller/@action.@format', ['controllerName' => '', 'action' => 'MyCoolAction', 'format' => 'html'], false, false)->will($this->returnValue($paths));
        $templatePaths->getTemplateSource('', 'myCoolAction');
    }