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

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode Description
addValueExpectation ( $value, $node = null, $forceConversion = false, $externalLinkTarget = null, $resourceLinkTarget = null, $absolute = false )

Method Details

addValueExpectation() protected méthode

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

evaluateDoesModifyTheValueIfExecutedInLiveWorkspaceWithTheForceConvertionOptionSet() public méthode

evaluateDoesNotModifyTheValueIfItDoesNotContainNodeUris() public méthode

evaluateDoesNotModifyTheValueIfNotExecutedInLiveWorkspace() public méthode

evaluateReplaceExternalLinkTargets() public méthode

This test checks that targets for external links are correctly replaced

evaluateReplaceResourceLinkTargets() public méthode

This test checks that targets for resource links are correctly replaced

evaluateReplacesAllNodeUrisInTheGivenValue() public méthode

evaluateReplacesUnresolvableNodeUrisWithAnEmptyString() public méthode

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 méthode

evaluateThrowsExceptionIfValueIsNoString() public méthode

setUp() public méthode

public setUp ( )

Property Details

$convertUrisImplementation protected_oe property

protected ConvertUrisImplementation,Neos\Neos\TypoScript $convertUrisImplementation
Résultat Neos\Neos\TypoScript\ConvertUrisImplementation

$mockContext protected_oe property

protected Context,Neos\ContentRepository\Domain\Service $mockContext
Résultat Neos\ContentRepository\Domain\Service\Context

$mockControllerContext protected_oe property

protected ControllerContext,Neos\Flow\Mvc\Controller $mockControllerContext
Résultat Neos\Flow\Mvc\Controller\ControllerContext

$mockLinkingService protected_oe property

protected LinkingService,Neos\Neos\Service $mockLinkingService
Résultat Neos\Neos\Service\LinkingService

$mockNode protected_oe property

protected NodeInterface,Neos\ContentRepository\Domain\Model $mockNode
Résultat Neos\ContentRepository\Domain\Model\NodeInterface

$mockNodeDataRepository protected_oe property

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $mockNodeDataRepository
Résultat Neos\ContentRepository\Domain\Repository\NodeDataRepository

$mockTsRuntime protected_oe property

protected Runtime,Neos\Fusion\Core $mockTsRuntime
Résultat Neos\Fusion\Core\Runtime

$mockUriBuilder protected_oe property

protected UriBuilder,Neos\Flow\Mvc\Routing $mockUriBuilder
Résultat Neos\Flow\Mvc\Routing\UriBuilder

$mockWorkspace protected_oe property

protected Workspace,Neos\ContentRepository\Domain\Model $mockWorkspace
Résultat Neos\ContentRepository\Domain\Model\Workspace