trait ProjectedNodeTrait (View source)

The feature trait to test projected nodes

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

getRootNodeAggregateId()

No description

void
iGoToTheParentNodeOfNode(string $serializedNodeAggregateId)

No description

void
iGetTheNodeAtPath(string $serializedNodePath)

No description

void
iExpectANodeIdentifiedByXToExistInTheContentGraph(string $serializedNodeDiscriminator)

No description

void
iExpectNodeAggregateIdToLeadToNode(string $serializedNodeAggregateId, string $serializedNodeDiscriminator)

No description

void
iExpectNodeAggregateIdToLeadToNoNode(string $serializedNodeAggregateId)

No description

void
iExpectPathToLeadToNode(string $serializedNodePath, string $serializedNodeDiscriminator)

No description

void
iExpectPathToLeadToNoNode(string $serializedNodePath)

No description

void
iExpectNodeAggregateIdAndNodePathToLeadToNode(string $serializedNodeAggregateId, string $serializedNodePath, string $serializedNodeDiscriminator)

No description

void
iExpectNodeAggregateIdAndNodePathToLeadToNoNode(string $serializedNodeAggregateId, string $serializedNodePath)

No description

void
iExpectTheNodeWithAggregateIdentifierToBeExplicitlyTagged(string $serializedNodeAggregateId, string $serializedTag)

No description

void
iExpectTheNodeWithAggregateIdentifierToInheritTheTag(string $serializedNodeAggregateId, string $serializedTag)

No description

void
iExpectTheNodeWithAggregateIdentifierToNotContainTheTag(string $serializedNodeAggregateId, string $serializedTag)

No description

void
iExpectThisNodeToBeExactlyExplicitlyTagged(string $expectedTagList)

No description

void
iExpectThisNodeToExactlyInheritTheTags(string $expectedTagList)

No description

void
initializeCurrentNodeFromContentSubgraph(callable $query)

No description

void
iExpectThisNodeToBeClassifiedAs(string $serializedExpectedClassification)

No description

void
iExpectThisNodeToBeOfType(string $serializedExpectedNodeTypeName)

No description

void
iExpectThisNodeToBeNamed(string $serializedExpectedNodeName)

No description

void
iExpectThisNodeToBeUnnamed()

No description

void
iExpectThisNodeToHaveTheFollowingSerializedPropertyTypes(TableNode $expectedPropertyTypes)

No description

void
iExpectThisNodeToHaveTheFollowingProperties(TableNode $expectedProperties)

No description

void
void
iExpectThisNodeToHaveTheFollowingReferences(TableNode $expectedReferences)

No description

void
void
iExpectThisNodeToBeReferencedBy(TableNode $expectedReferences)

No description

void
void
iExpectThisNodeToBeTheChildOfNode(string $serializedParentNodeDiscriminator)

No description

void
void
iExpectThisNodeToHaveTheFollowingChildNodes(TableNode $expectedChildNodesTable)

No description

void
void
iExpectThisNodeToHaveTheFollowingPrecedingSiblings(TableNode $expectedPrecedingSiblingsTable)

No description

void
iExpectThisNodeToHaveTheFollowingSucceedingSiblings(TableNode $expectedSucceedingSiblingsTable)

No description

void
assertOnCurrentNode(callable $assertions)

No description

void
expectCurrentNode()

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

abstract protected NodeAggregateId|null getRootNodeAggregateId()

No description

Return Value

NodeAggregateId|null

void iGoToTheParentNodeOfNode(string $serializedNodeAggregateId)

No description

Parameters

string $serializedNodeAggregateId

Return Value

void

void iGetTheNodeAtPath(string $serializedNodePath)

No description

Parameters

string $serializedNodePath

Return Value

void

Exceptions

Exception

void iExpectANodeIdentifiedByXToExistInTheContentGraph(string $serializedNodeDiscriminator)

No description

Parameters

string $serializedNodeDiscriminator

Return Value

void

Exceptions

Exception

void iExpectNodeAggregateIdToLeadToNode(string $serializedNodeAggregateId, string $serializedNodeDiscriminator)

No description

Parameters

string $serializedNodeAggregateId
string $serializedNodeDiscriminator

Return Value

void

void iExpectNodeAggregateIdToLeadToNoNode(string $serializedNodeAggregateId)

No description

Parameters

string $serializedNodeAggregateId

Return Value

void

void iExpectPathToLeadToNode(string $serializedNodePath, string $serializedNodeDiscriminator)

No description

Parameters

string $serializedNodePath
string $serializedNodeDiscriminator

Return Value

void

Exceptions

Exception

void iExpectPathToLeadToNoNode(string $serializedNodePath)

No description

Parameters

string $serializedNodePath

Return Value

void

Exceptions

Exception

void iExpectNodeAggregateIdAndNodePathToLeadToNode(string $serializedNodeAggregateId, string $serializedNodePath, string $serializedNodeDiscriminator)

No description

Parameters

string $serializedNodeAggregateId
string $serializedNodePath
string $serializedNodeDiscriminator

Return Value

void

Exceptions

Exception

void iExpectNodeAggregateIdAndNodePathToLeadToNoNode(string $serializedNodeAggregateId, string $serializedNodePath)

No description

Parameters

string $serializedNodeAggregateId
string $serializedNodePath

Return Value

void

Exceptions

Exception

void iExpectTheNodeWithAggregateIdentifierToBeExplicitlyTagged(string $serializedNodeAggregateId, string $serializedTag)

No description

Parameters

string $serializedNodeAggregateId
string $serializedTag

Return Value

void

void iExpectTheNodeWithAggregateIdentifierToInheritTheTag(string $serializedNodeAggregateId, string $serializedTag)

No description

Parameters

string $serializedNodeAggregateId
string $serializedTag

Return Value

void

void iExpectTheNodeWithAggregateIdentifierToNotContainTheTag(string $serializedNodeAggregateId, string $serializedTag)

No description

Parameters

string $serializedNodeAggregateId
string $serializedTag

Return Value

void

void iExpectThisNodeToBeExactlyExplicitlyTagged(string $expectedTagList)

No description

Parameters

string $expectedTagList

the comma-separated list of tag names

Return Value

void

void iExpectThisNodeToExactlyInheritTheTags(string $expectedTagList)

No description

Parameters

string $expectedTagList

the comma-separated list of tag names

Return Value

void

protected void initializeCurrentNodeFromContentSubgraph(callable $query)

No description

Parameters

callable $query

Return Value

void

void iExpectThisNodeToBeClassifiedAs(string $serializedExpectedClassification)

No description

Parameters

string $serializedExpectedClassification

Return Value

void

void iExpectThisNodeToBeOfType(string $serializedExpectedNodeTypeName)

No description

Parameters

string $serializedExpectedNodeTypeName

Return Value

void

void iExpectThisNodeToBeNamed(string $serializedExpectedNodeName)

No description

Parameters

string $serializedExpectedNodeName

Return Value

void

void iExpectThisNodeToBeUnnamed()

No description

Return Value

void

void iExpectThisNodeToHaveTheFollowingSerializedPropertyTypes(TableNode $expectedPropertyTypes)

No description

Parameters

TableNode $expectedPropertyTypes

Return Value

void

void iExpectThisNodeToHaveTheFollowingProperties(TableNode $expectedProperties)

No description

Parameters

TableNode $expectedProperties

Return Value

void

void iExpectThisNodeToHaveNoProperties()

No description

Return Value

void

void iExpectThisNodeToHaveTheFollowingReferences(TableNode $expectedReferences)

No description

Parameters

TableNode $expectedReferences

Return Value

void

Exceptions

Exception

void iExpectThisNodeToHaveNoReferences()

No description

Return Value

void

Exceptions

Exception

void iExpectThisNodeToBeReferencedBy(TableNode $expectedReferences)

No description

Parameters

TableNode $expectedReferences

Return Value

void

Exceptions

Exception

void iExpectThisNodeToNotBeReferenced()

No description

Return Value

void

Exceptions

Exception

void iExpectThisNodeToBeTheChildOfNode(string $serializedParentNodeDiscriminator)

No description

Parameters

string $serializedParentNodeDiscriminator

Return Value

void

void iExpectThisNodeToHaveNoParentNode()

No description

Return Value

void

void iExpectThisNodeToHaveTheFollowingChildNodes(TableNode $expectedChildNodesTable)

No description

Parameters

TableNode $expectedChildNodesTable

Return Value

void

void iExpectThisNodeToHaveNoChildNodes()

No description

Return Value

void

void iExpectThisNodeToHaveTheFollowingPrecedingSiblings(TableNode $expectedPrecedingSiblingsTable)

No description

Parameters

TableNode $expectedPrecedingSiblingsTable

Return Value

void

void iExpectThisNodeToHaveNoPrecedingSiblings()

No description

Return Value

void

void iExpectThisNodeToHaveTheFollowingSucceedingSiblings(TableNode $expectedSucceedingSiblingsTable)

No description

Parameters

TableNode $expectedSucceedingSiblingsTable

Return Value

void

void iExpectThisNodeToHaveNoSucceedingSiblings()

No description

Return Value

void

protected void assertOnCurrentNode(callable $assertions)

No description

Parameters

callable $assertions

Return Value

void

protected void expectCurrentNode()

No description

Return Value

void