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

getLayoutPathAndFilenameThrowsExceptionIfNoPathCanBeResolved() public method

    public function getLayoutPathAndFilenameThrowsExceptionIfNoPathCanBeResolved()
    {
        vfsStreamWrapper::register();
        $paths = ['vfs://NonExistentDir/UnknownFile.html', 'vfs://NonExistentDir/AnotherUnknownFile.html'];
        /** @var TemplatePaths $templatePaths */
        $templatePaths = $this->getAccessibleMock(TemplatePaths::class, ['expandGenericPathPattern'], [['layoutPathAndFilenamePattern' => '@layoutRoot/@layout.@format']], '', true);
        $templatePaths->expects($this->once())->method('expandGenericPathPattern')->with('@layoutRoot/@layout.@format', ['layout' => 'Default', 'format' => 'html'], true, true)->will($this->returnValue($paths));
        $templatePaths->getLayoutSource();
    }