Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Uri\ResourceViewHelperTest::renderUsesProvidedPersistentResourceInsteadOfPackageAndPath PHP Method

renderUsesProvidedPersistentResourceInsteadOfPackageAndPath() public method

    public function renderUsesProvidedPersistentResourceInsteadOfPackageAndPath()
    {
        $resource = new PersistentResource();
        $this->mockResourceManager->expects($this->atLeastOnce())->method('getPublicPersistentResourceUri')->with($resource)->will($this->returnValue('TheCorrectResourceUri'));
        $resourceUri = $this->viewHelper->render(null, null, $resource, false);
        $this->assertEquals('TheCorrectResourceUri', $resourceUri);
    }