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

getTemplatePathAndFilenameThrowsExceptionIfNoPathCanBeResolved() public method

    public function getTemplatePathAndFilenameThrowsExceptionIfNoPathCanBeResolved()
    {
        vfsStreamWrapper::register();
        $paths = ['vfs://NonExistentDir/UnknownFile.html', 'vfs://NonExistentDir/AnotherUnknownFile.html'];
        $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');
    }