PHP Class Neos\Neos\Tests\Unit\TypoScript\ConvertUrisImplementationTest

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

Protected Properties

Property Type Description
$convertUrisImplementation Neos\Neos\TypoScript\ConvertUrisImplementation
$mockContext Neos\ContentRepository\Domain\Service\Context
$mockControllerContext Neos\Flow\Mvc\Controller\ControllerContext
$mockLinkingService Neos\Neos\Service\LinkingService
$mockNode Neos\ContentRepository\Domain\Model\NodeInterface
$mockNodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$mockTsRuntime Neos\Fusion\Core\Runtime
$mockUriBuilder Neos\Flow\Mvc\Routing\UriBuilder
$mockWorkspace Neos\ContentRepository\Domain\Model\Workspace

Public Methods

Method Description
evaluateDoesModifyTheValueIfExecutedInLiveWorkspaceWithTheForceConvertionOptionSet ( )
evaluateDoesNotModifyTheValueIfItDoesNotContainNodeUris ( )
evaluateDoesNotModifyTheValueIfNotExecutedInLiveWorkspace ( )
evaluateReplaceExternalLinkTargets ( ) This test checks that targets for external links are correctly replaced
evaluateReplaceResourceLinkTargets ( ) This test checks that targets for resource links are correctly replaced
evaluateReplacesAllNodeUrisInTheGivenValue ( )
evaluateReplacesUnresolvableNodeUrisWithAnEmptyString ( ) This only verifies the current behavior that might be changed in the future (e.g. we could remove unresolved links instead of creating empty href attributes)
evaluateThrowsExceptionIfTheCurrentContextArrayDoesNotContainANode ( )
evaluateThrowsExceptionIfValueIsNoString ( )
setUp ( )

Protected Methods

Method Description
addValueExpectation ( $value, $node = null, $forceConversion = false, $externalLinkTarget = null, $resourceLinkTarget = null, $absolute = false )

Method Details

addValueExpectation() protected method

protected addValueExpectation ( $value, $node = null, $forceConversion = false, $externalLinkTarget = null, $resourceLinkTarget = null, $absolute = false )

evaluateDoesModifyTheValueIfExecutedInLiveWorkspaceWithTheForceConvertionOptionSet() public method

evaluateDoesNotModifyTheValueIfItDoesNotContainNodeUris() public method

evaluateDoesNotModifyTheValueIfNotExecutedInLiveWorkspace() public method

evaluateReplaceExternalLinkTargets() public method

This test checks that targets for external links are correctly replaced

evaluateReplaceResourceLinkTargets() public method

This test checks that targets for resource links are correctly replaced

evaluateReplacesAllNodeUrisInTheGivenValue() public method

evaluateReplacesUnresolvableNodeUrisWithAnEmptyString() public method

This only verifies the current behavior that might be changed in the future (e.g. we could remove unresolved links instead of creating empty href attributes)

evaluateThrowsExceptionIfTheCurrentContextArrayDoesNotContainANode() public method

evaluateThrowsExceptionIfValueIsNoString() public method

setUp() public method

public setUp ( )

Property Details

$convertUrisImplementation protected property

protected ConvertUrisImplementation,Neos\Neos\TypoScript $convertUrisImplementation
return Neos\Neos\TypoScript\ConvertUrisImplementation

$mockContext protected property

protected Context,Neos\ContentRepository\Domain\Service $mockContext
return Neos\ContentRepository\Domain\Service\Context

$mockControllerContext protected property

protected ControllerContext,Neos\Flow\Mvc\Controller $mockControllerContext
return Neos\Flow\Mvc\Controller\ControllerContext

$mockLinkingService protected property

protected LinkingService,Neos\Neos\Service $mockLinkingService
return Neos\Neos\Service\LinkingService

$mockNode protected property

protected NodeInterface,Neos\ContentRepository\Domain\Model $mockNode
return Neos\ContentRepository\Domain\Model\NodeInterface

$mockNodeDataRepository protected property

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

$mockTsRuntime protected property

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

$mockUriBuilder protected property

protected UriBuilder,Neos\Flow\Mvc\Routing $mockUriBuilder
return Neos\Flow\Mvc\Routing\UriBuilder

$mockWorkspace protected property

protected Workspace,Neos\ContentRepository\Domain\Model $mockWorkspace
return Neos\ContentRepository\Domain\Model\Workspace