PHP Class Neos\Neos\Tests\Functional\ViewHelpers\Uri\NodeViewHelperTest

Inheritance: extends Neos\Flow\Tests\FunctionalTestCase
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$contentContext Neos\Neos\Domain\Service\ContentContext
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$propertyMapper Neos\Flow\Property\PropertyMapper
$testablePersistenceEnabled
$testableSecurityEnabled
$tsRuntime Neos\Fusion\Core\Runtime
$viewHelper Neos\Neos\ViewHelpers\Uri\NodeViewHelper

Public Methods

Method Description
setUp ( )
tearDown ( )
viewHelperCatchesExceptionIfTargetNodeDoesNotExist ( )
viewHelperRendersUriViaAbsoluteNodePathString ( )
viewHelperRendersUriViaContextNodePathString ( ) We empty the TemplateVariableContainer for this test, as it shouldn't be needed for rendering a link to a node identified by ContextNodePath
viewHelperRendersUriViaGivenNodeObject ( )
viewHelperRendersUriViaNodeUriPathString ( )
viewHelperRendersUriViaStringPointingToSubNodes ( )
viewHelperRendersUriViaStringStartingWithTilde ( )
viewHelperRespectsAbsoluteParameter ( )
viewHelperRespectsArgumentsParameter ( )
viewHelperRespectsBaseNodeNameParameter ( )

Protected Methods

Method Description
assertOutputLinkValid ( $expected, $actual ) A wrapper function for the appropriate assertion for the Link- and its Uri-ViewHelper derivate.

Method Details

assertOutputLinkValid() protected method

Is overridden in the FunctionalTest for the LinkViewHelper.
protected assertOutputLinkValid ( $expected, $actual )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

viewHelperCatchesExceptionIfTargetNodeDoesNotExist() public method

viewHelperRendersUriViaAbsoluteNodePathString() public method

viewHelperRendersUriViaContextNodePathString() public method

We empty the TemplateVariableContainer for this test, as it shouldn't be needed for rendering a link to a node identified by ContextNodePath

viewHelperRendersUriViaGivenNodeObject() public method

viewHelperRendersUriViaNodeUriPathString() public method

viewHelperRendersUriViaStringPointingToSubNodes() public method

viewHelperRendersUriViaStringStartingWithTilde() public method

viewHelperRespectsAbsoluteParameter() public method

viewHelperRespectsArgumentsParameter() public method

viewHelperRespectsBaseNodeNameParameter() public method

Property Details

$contentContext protected property

protected ContentContext,Neos\Neos\Domain\Service $contentContext
return Neos\Neos\Domain\Service\ContentContext

$contextFactory protected property

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
return Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$nodeDataRepository protected property

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
return Neos\ContentRepository\Domain\Repository\NodeDataRepository

$propertyMapper protected property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
return Neos\Flow\Property\PropertyMapper

$testablePersistenceEnabled protected static property

protected static $testablePersistenceEnabled

$testableSecurityEnabled protected property

protected $testableSecurityEnabled

$tsRuntime protected property

protected Runtime,Neos\Fusion\Core $tsRuntime
return Neos\Fusion\Core\Runtime

$viewHelper protected property

protected NodeViewHelper,Neos\Neos\ViewHelpers\Uri $viewHelper
return Neos\Neos\ViewHelpers\Uri\NodeViewHelper