trait ProjectedNodeAggregateTrait (View source)

The feature trait to test node aggregates

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
iExpectTheNodeAggregateToExist(string $serializedNodeAggregateId)

No description

void
iExpectTheNodeAggregateToNotExist(string $serializedNodeAggregateId)

No description

void
initializeCurrentNodeAggregate(callable $query)

No description

void
iExpectThisNodeAggregateToOccupyDimensionSpacePoints(string $serializedExpectedOriginDimensionSpacePoints)

No description

void
iExpectThisNodeAggregateToCoverDimensionSpacePoints(string $serializedCoveredDimensionSpacePointSet)

No description

void
iExpectThisNodeAggregateToDisableDimensionSpacePoints(string $serializedDimensionSpacePoints, string $subtreeTag = 'disabled')

No description

void
iExpectThisNodeAggregateToBeClassifiedAs(string $serializedExpectedClassification)

No description

void
iExpectThisNodeAggregateToBeOfType(string $serializedExpectedNodeTypeName)

No description

void
void
iExpectThisNodeAggregateToHaveTheName(string $serializedExpectedNodeName)

No description

void
iExpectThisNodeAggregateToHaveTheParentNodeAggregates(string $serializedExpectedNodeAggregateIds)

No description

void
iExpectThisNodeAggregateToHaveTheChildNodeAggregates(string $serializedExpectedNodeAggregateIds)

No description

void
assertOnCurrentNodeAggregate(callable $assertions)

No description

void
expectCurrentNodeAggregate()

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 iExpectTheNodeAggregateToExist(string $serializedNodeAggregateId)

No description

Parameters

string $serializedNodeAggregateId

Return Value

void

void iExpectTheNodeAggregateToNotExist(string $serializedNodeAggregateId)

No description

Parameters

string $serializedNodeAggregateId

Return Value

void

protected void initializeCurrentNodeAggregate(callable $query)

No description

Parameters

callable $query

Return Value

void

void iExpectThisNodeAggregateToOccupyDimensionSpacePoints(string $serializedExpectedOriginDimensionSpacePoints)

No description

Parameters

string $serializedExpectedOriginDimensionSpacePoints

Return Value

void

void iExpectThisNodeAggregateToCoverDimensionSpacePoints(string $serializedCoveredDimensionSpacePointSet)

No description

Parameters

string $serializedCoveredDimensionSpacePointSet

Return Value

void

void iExpectThisNodeAggregateToDisableDimensionSpacePoints(string $serializedDimensionSpacePoints, string $subtreeTag = 'disabled')

No description

Parameters

string $serializedDimensionSpacePoints
string $subtreeTag

Return Value

void

void iExpectThisNodeAggregateToBeClassifiedAs(string $serializedExpectedClassification)

No description

Parameters

string $serializedExpectedClassification

Return Value

void

void iExpectThisNodeAggregateToBeOfType(string $serializedExpectedNodeTypeName)

No description

Parameters

string $serializedExpectedNodeTypeName

Return Value

void

void iExpectThisNodeAggregateToBeUnnamed()

No description

Return Value

void

void iExpectThisNodeAggregateToHaveTheName(string $serializedExpectedNodeName)

No description

Parameters

string $serializedExpectedNodeName

Return Value

void

void iExpectThisNodeAggregateToHaveNoParentNodeAggregates()

No description

Return Value

void

void iExpectThisNodeAggregateToHaveTheParentNodeAggregates(string $serializedExpectedNodeAggregateIds)

No description

Parameters

string $serializedExpectedNodeAggregateIds

Return Value

void

void iExpectThisNodeAggregateToHaveNoChildNodeAggregates()

No description

Return Value

void

void iExpectThisNodeAggregateToHaveTheChildNodeAggregates(string $serializedExpectedNodeAggregateIds)

No description

Parameters

string $serializedExpectedNodeAggregateIds

Return Value

void

protected void assertOnCurrentNodeAggregate(callable $assertions)

No description

Parameters

callable $assertions

Return Value

void

protected void expectCurrentNodeAggregate()

No description

Return Value

void