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

getPartialPathAndFilenameThrowsExceptionIfNoPathCanBeResolved() public method

    public function getPartialPathAndFilenameThrowsExceptionIfNoPathCanBeResolved()
    {
        vfsStreamWrapper::register();
        $paths = ['vfs://NonExistentDir/UnknownFile.html', 'vfs://NonExistentDir/AnotherUnknownFile.html'];
        /** @var TemplatePaths $templatePaths */
        $templatePaths = $this->getAccessibleMock(TemplatePaths::class, ['expandGenericPathPattern'], [['partialPathAndFilenamePattern' => '@partialRoot/@subpackage/@partial.@format']], '', true);
        $templatePaths->expects($this->once())->method('expandGenericPathPattern')->with('@partialRoot/@subpackage/@partial.@format', ['partial' => 'SomePartial', 'format' => 'html'], true, true)->will($this->returnValue($paths));
        $templatePaths->getPartialSource('SomePartial');
    }