trait NodeTraversalTrait (View source)

The feature trait to test the subgraph traversal API

Traits

The node creation trait for behavioral tests

Properties

protected ContentRepository|null $currentContentRepository from  CRTestSuiteRuntimeVariables
protected WorkspaceName|null $currentWorkspaceName from  CRTestSuiteRuntimeVariables
protected DimensionSpacePoint|null $currentDimensionSpacePoint from  CRTestSuiteRuntimeVariables
protected VisibilityConstraints|null $currentVisibilityConstraints from  CRTestSuiteRuntimeVariables
protected NodeAggregateId|null $currentRootNodeAggregateId from  CRTestSuiteRuntimeVariables
protected Exception|null $lastCommandException from  CRTestSuiteRuntimeVariables
protected Node|null $currentNode from  CRTestSuiteRuntimeVariables
protected NodeAggregate|null $currentNodeAggregate from  CRTestSuiteRuntimeVariables
protected NodeAggregateId> $rememberedNodeAggregateIds from  CRTestSuiteRuntimeVariables

Methods

void
iAmInContentRepository(string $contentRepositoryId)

No description

void
iAmUserIdentifiedBy(string $userId)

No description

void
theCurrentDateAndTimeIs(string $timestamp)

No description

void
iAmInWorkspace(string $workspaceName)

No description

void
iAmInDimensionSpacePoint(string $dimensionSpacePoint)

No description

void
iAmInWorkspaceAndDimensionSpacePoint(string $workspaceName, string $dimensionSpacePoint)

No description

void
visibilityConstraintsAreSetTo(string $restrictionType)

No description

void
iRememberNodeAggregateIdOfNodesChildAs(string $parentNodeAggregateId, string $childNodeName, string $indexName)

No description

void
iExecuteTheFindChildNodesQueryIExpectTheFollowingNodes(string $parentNodeIdSerialized, string $filterSerialized = '', string $expectedNodeIdsSerialized = '', int|null $expectedTotalCount = null)

No description

void
iExecuteTheFindReferencesQueryIExpectTheFollowingReferences(string $nodeIdSerialized, string|null $filterSerialized = null, string|null $referencesSerialized = null, int|null $expectedTotalCount = null)

No description

void
iExecuteTheFindBackReferencesQueryIExpectTheFollowingReferences(string $nodeIdSerialized, string|null $filterSerialized = null, string|null $referencesSerialized = null, int|null $expectedTotalCount = null)

No description

void
iExecuteTheFindNodeByIdQueryIExpectTheFollowingNodes(string $nodeIdSerialized, string|null $expectedNodeIdSerialized = null)

No description

void
iExecuteTheFindNodeByIdsQueryIExpectTheFollowingNodes(string $entryNodeIdsSerialized, string $expectedNodeIdsSerialized)

No description

void
iExecuteTheFindNodeAggregateByIdQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, TableNode $expectedNodes)

No description

void
iExecuteTheFindNodeAggregatesByIdsByIdsQueryIExpectTheFollowingNodes(string $entryNodeIdsSerialized, TableNode $expectedNodes)

No description

void
iExecuteTheFindParentNodeQueryIExpectTheFollowingNodes(string $nodeIdSerialized, string|null $expectedNodeIdSerialized = null)

No description

void
iExecuteTheFindParentNodeAggregatesQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, TableNode $expectedNodes)

No description

void
iExecuteTheFindNodeByPathQueryIExpectTheFollowingNodes(string $pathSerialized, string $startingNodeIdSerialized, string|null $expectedNodeIdSerialized = null)

No description

void
iExecuteTheFindNodeByAbsolutePathQueryIExpectTheFollowingNodes(string $pathSerialized, string|null $expectedNodeIdSerialized = null)

No description

void
iExecuteTheFindChildNodeByNodeNameQueryIExpectTheFollowingNodes(string $parentNodeIdSerialized, string $edgeNameSerialized, string|null $expectedNodeIdSerialized = null)

No description

void
iExecuteTheFindSucceedingSiblingNodesQueryIExpectTheFollowingNodes(string $siblingNodeIdSerialized, string|null $filterSerialized = null, string|null $expectedNodeIdsSerialized = null)

No description

void
iExecuteTheFindPrecedingSiblingNodesQueryIExpectTheFollowingNodes(string $siblingNodeIdSerialized, string|null $filterSerialized = null, string|null $expectedNodeIdsSerialized = null)

No description

void
iExecuteTheRetrieveNodePathQueryIExpectTheFollowingNodes(string $nodeIdSerialized, string|null $expectedPathSerialized = null, string|null $expectedExceptionMessage = null)

No description

void
iExecuteTheFindSubtreeQueryIExpectTheFollowingTrees(string $entryNodeIdSerialized, string|null $filterSerialized = null, PyStringNode|null $expectedTree = null, string|null $withTags = null)

No description

void
iExecuteTheFindDescendantNodesQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, string $filterSerialized = '', string $expectedNodeIdsSerialized = '', int|null $expectedTotalCount = null)

No description

void
iExecuteTheFindAncestorNodesQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, string $filterSerialized = '', string $expectedNodeIdsSerialized = '', int|null $expectedTotalCount = null)

No description

void
iExecuteTheFindAncestorNodeAggregateIdsQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, string $expectedNodeIdsSerialized = '')

No description

void
iExecuteTheFindClosestNodeQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, string $filterSerialized = '', string|null $expectedNodeId = null)

No description

void
iExecuteTheCountNodesQueryIExpectTheFollowingResult(int $expectedResult)

No description

void
iExpectTheNodeToHaveTheFollowingTimestamps(string $nodeIdSerialized, TableNode $expectedTimestampsTable)

No description

void
iExecuteTheFindNodeAggregatesTaggedByQueryIExpectTheFollowingNodes(string $subtreeTag, TableNode $expectedNodes)

No description

void
iExecuteTheFindRootNodeByTypeQueryIExpectTheFollowingNodes(string $serializedNodeTypeName, string|null $serializedExpectedNodeId = null)

No description

Details

void iAmInContentRepository(string $contentRepositoryId)

No description

Parameters

string $contentRepositoryId

Return Value

void

abstract protected ContentRepository getContentRepository(ContentRepositoryId $id)

No description

Parameters

ContentRepositoryId $id

Return Value

ContentRepository

Exceptions

DomainException

void iAmUserIdentifiedBy(string $userId)

No description

Parameters

string $userId

Return Value

void

void theCurrentDateAndTimeIs(string $timestamp)

No description

Parameters

string $timestamp

Return Value

void

void iAmInWorkspace(string $workspaceName)

No description

Parameters

string $workspaceName

Return Value

void

void iAmInDimensionSpacePoint(string $dimensionSpacePoint)

No description

Parameters

string $dimensionSpacePoint

Return Value

void

void iAmInWorkspaceAndDimensionSpacePoint(string $workspaceName, string $dimensionSpacePoint)

No description

Parameters

string $workspaceName
string $dimensionSpacePoint

Return Value

void

Exceptions

Exception

void visibilityConstraintsAreSetTo(string $restrictionType)

No description

Parameters

string $restrictionType

Return Value

void

void iRememberNodeAggregateIdOfNodesChildAs(string $parentNodeAggregateId, string $childNodeName, string $indexName)

No description

Parameters

string $parentNodeAggregateId
string $childNodeName
string $indexName

Return Value

void

protected NodeAggregateId|null getCurrentNodeAggregateId()

No description

Return Value

NodeAggregateId|null

void iExecuteTheFindChildNodesQueryIExpectTheFollowingNodes(string $parentNodeIdSerialized, string $filterSerialized = '', string $expectedNodeIdsSerialized = '', int|null $expectedTotalCount = null)

No description

Parameters

string $parentNodeIdSerialized
string $filterSerialized
string $expectedNodeIdsSerialized
int|null $expectedTotalCount

Return Value

void

void iExecuteTheFindReferencesQueryIExpectTheFollowingReferences(string $nodeIdSerialized, string|null $filterSerialized = null, string|null $referencesSerialized = null, int|null $expectedTotalCount = null)

No description

Parameters

string $nodeIdSerialized
string|null $filterSerialized
string|null $referencesSerialized
int|null $expectedTotalCount

Return Value

void

void iExecuteTheFindBackReferencesQueryIExpectTheFollowingReferences(string $nodeIdSerialized, string|null $filterSerialized = null, string|null $referencesSerialized = null, int|null $expectedTotalCount = null)

No description

Parameters

string $nodeIdSerialized
string|null $filterSerialized
string|null $referencesSerialized
int|null $expectedTotalCount

Return Value

void

void iExecuteTheFindNodeByIdQueryIExpectTheFollowingNodes(string $nodeIdSerialized, string|null $expectedNodeIdSerialized = null)

No description

Parameters

string $nodeIdSerialized
string|null $expectedNodeIdSerialized

Return Value

void

void iExecuteTheFindNodeByIdsQueryIExpectTheFollowingNodes(string $entryNodeIdsSerialized, string $expectedNodeIdsSerialized)

No description

Parameters

string $entryNodeIdsSerialized
string $expectedNodeIdsSerialized

Return Value

void

void iExecuteTheFindNodeAggregateByIdQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, TableNode $expectedNodes)

No description

Parameters

string $entryNodeIdSerialized
TableNode $expectedNodes

Return Value

void

void iExecuteTheFindNodeAggregatesByIdsByIdsQueryIExpectTheFollowingNodes(string $entryNodeIdsSerialized, TableNode $expectedNodes)

No description

Parameters

string $entryNodeIdsSerialized
TableNode $expectedNodes

Return Value

void

void iExecuteTheFindParentNodeQueryIExpectTheFollowingNodes(string $nodeIdSerialized, string|null $expectedNodeIdSerialized = null)

No description

Parameters

string $nodeIdSerialized
string|null $expectedNodeIdSerialized

Return Value

void

void iExecuteTheFindParentNodeAggregatesQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, TableNode $expectedNodes)

No description

Parameters

string $entryNodeIdSerialized
TableNode $expectedNodes

Return Value

void

void iExecuteTheFindNodeByPathQueryIExpectTheFollowingNodes(string $pathSerialized, string $startingNodeIdSerialized, string|null $expectedNodeIdSerialized = null)

No description

Parameters

string $pathSerialized
string $startingNodeIdSerialized
string|null $expectedNodeIdSerialized

Return Value

void

void iExecuteTheFindNodeByAbsolutePathQueryIExpectTheFollowingNodes(string $pathSerialized, string|null $expectedNodeIdSerialized = null)

No description

Parameters

string $pathSerialized
string|null $expectedNodeIdSerialized

Return Value

void

void iExecuteTheFindChildNodeByNodeNameQueryIExpectTheFollowingNodes(string $parentNodeIdSerialized, string $edgeNameSerialized, string|null $expectedNodeIdSerialized = null)

No description

Parameters

string $parentNodeIdSerialized
string $edgeNameSerialized
string|null $expectedNodeIdSerialized

Return Value

void

void iExecuteTheFindSucceedingSiblingNodesQueryIExpectTheFollowingNodes(string $siblingNodeIdSerialized, string|null $filterSerialized = null, string|null $expectedNodeIdsSerialized = null)

No description

Parameters

string $siblingNodeIdSerialized
string|null $filterSerialized
string|null $expectedNodeIdsSerialized

Return Value

void

void iExecuteTheFindPrecedingSiblingNodesQueryIExpectTheFollowingNodes(string $siblingNodeIdSerialized, string|null $filterSerialized = null, string|null $expectedNodeIdsSerialized = null)

No description

Parameters

string $siblingNodeIdSerialized
string|null $filterSerialized
string|null $expectedNodeIdsSerialized

Return Value

void

void iExecuteTheRetrieveNodePathQueryIExpectTheFollowingNodes(string $nodeIdSerialized, string|null $expectedPathSerialized = null, string|null $expectedExceptionMessage = null)

No description

Parameters

string $nodeIdSerialized
string|null $expectedPathSerialized
string|null $expectedExceptionMessage

Return Value

void

void iExecuteTheFindSubtreeQueryIExpectTheFollowingTrees(string $entryNodeIdSerialized, string|null $filterSerialized = null, PyStringNode|null $expectedTree = null, string|null $withTags = null)

No description

Parameters

string $entryNodeIdSerialized
string|null $filterSerialized
PyStringNode|null $expectedTree
string|null $withTags

Return Value

void

void iExecuteTheFindDescendantNodesQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, string $filterSerialized = '', string $expectedNodeIdsSerialized = '', int|null $expectedTotalCount = null)

No description

Parameters

string $entryNodeIdSerialized
string $filterSerialized
string $expectedNodeIdsSerialized
int|null $expectedTotalCount

Return Value

void

void iExecuteTheFindAncestorNodesQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, string $filterSerialized = '', string $expectedNodeIdsSerialized = '', int|null $expectedTotalCount = null)

No description

Parameters

string $entryNodeIdSerialized
string $filterSerialized
string $expectedNodeIdsSerialized
int|null $expectedTotalCount

Return Value

void

void iExecuteTheFindAncestorNodeAggregateIdsQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, string $expectedNodeIdsSerialized = '')

No description

Parameters

string $entryNodeIdSerialized
string $expectedNodeIdsSerialized

Return Value

void

void iExecuteTheFindClosestNodeQueryIExpectTheFollowingNodes(string $entryNodeIdSerialized, string $filterSerialized = '', string|null $expectedNodeId = null)

No description

Parameters

string $entryNodeIdSerialized
string $filterSerialized
string|null $expectedNodeId

Return Value

void

void iExecuteTheCountNodesQueryIExpectTheFollowingResult(int $expectedResult)

No description

Parameters

int $expectedResult

Return Value

void

void iExpectTheNodeToHaveTheFollowingTimestamps(string $nodeIdSerialized, TableNode $expectedTimestampsTable)

No description

Parameters

string $nodeIdSerialized
TableNode $expectedTimestampsTable

Return Value

void

void iExecuteTheFindNodeAggregatesTaggedByQueryIExpectTheFollowingNodes(string $subtreeTag, TableNode $expectedNodes)

No description

Parameters

string $subtreeTag
TableNode $expectedNodes

Return Value

void

void iExecuteTheFindRootNodeByTypeQueryIExpectTheFollowingNodes(string $serializedNodeTypeName, string|null $serializedExpectedNodeId = null)

No description

Parameters

string $serializedNodeTypeName
string|null $serializedExpectedNodeId

Return Value

void