trait CRTestSuiteTrait (View source)

Features context

Traits

The node creation trait for behavioral tests

The feature trait to test projected nodes

The feature trait to test the subgraph traversal API

The feature trait to test node aggregates

The feature trait to test projected nodes

The content stream forking feature trait for behavioral tests

The content stream closing feature trait for behavioral tests

The node creation trait for behavioral tests

The tagging trait for behavioral tests

The node modification trait for behavioral tests

The node move trait for behavioral tests

The node referencing trait for behavioral tests

The node removal trait for behavioral tests

The node renaming trait for behavioral tests

The workspace creation feature trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

The node creation trait for behavioral tests

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
EventStoreInterface|null $eventStore from  GenericCommandExecutionAndEventPublication
SubscriptionEngine|null $subscriptionEngine from  GenericCommandExecutionAndEventPublication

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
iExpectTheSubgraphProjectionToConsistOfExactlyNodes(int $expectedNumberOfNodes)

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

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
iExpectThisNodeAggregateToHaveTheName(string $serializedExpectedNodeName)

No description

void
iExpectThisNodeAggregateToHaveTheParentNodeAggregates(string $serializedExpectedNodeAggregateIds)

No description

void
iExpectThisNodeAggregateToHaveTheChildNodeAggregates(string $serializedExpectedNodeAggregateIds)

No description

void
assertOnCurrentNodeAggregate(callable $assertions)

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
iExpectThisNodeToHaveTheFollowingReferences(TableNode $expectedReferences)

No description

void
iExpectThisNodeToBeReferencedBy(TableNode $expectedReferences)

No description

void
iExpectThisNodeToBeTheChildOfNode(string $serializedParentNodeDiscriminator)

No description

void
iExpectThisNodeToHaveTheFollowingChildNodes(TableNode $expectedChildNodesTable)

No description

void
iExpectThisNodeToHaveTheFollowingPrecedingSiblings(TableNode $expectedPrecedingSiblingsTable)

No description

void
iExpectThisNodeToHaveTheFollowingSucceedingSiblings(TableNode $expectedSucceedingSiblingsTable)

No description

void
assertOnCurrentNode(callable $assertions)

No description

void
expectCurrentNode()

No description

array
readPayloadTable(TableNode $payloadTable)

No description

EventStoreInterface
getEventStore() deprecated

No description

deserializeProperties(array $properties)

No description

void
theCommandIsExecutedWithPayloadAndExceptionsAreCaught(string $shortCommandName, TableNode $payloadTable)

No description

void
theCommandIsExecutedWithJsonPayload(string $shortCommandName, string $payload)

No description

void
theCommandIsExecutedWithJsonPayloadAndExceptionsAreCaught(string $shortCommandName, string $payload)

No description

void
theFollowingCreateNodeAggregateWithNodeCommandsAreExecuted(string $shortCommandName, TableNode $table)

No description

array
addDefaultCommandArgumentValues(string $commandClassName, array $commandArguments)

No description

static string
resolveShortCommandName(string $shortCommandName)

No description

void
publishEvent(string $eventType, StreamName $streamName, array $eventPayload)

No description

theEventSubtreeWasTaggedWasPublishedWithPayload(TableNode $payloadTable)

No description

theEventSubtreeWasUntaggedWasPublishedWithPayload(TableNode $payloadTable)

No description

theEventNodePropertiesWereSetWasPublishedWithPayload(TableNode $payloadTable)

No description

iExpectThisNodeToNotHaveTheProperty(string $propertyName)

No description

theEventNodeAggregateWasMovedWasPublishedWithPayload(TableNode $payloadTable)

No description

from  NodeMove
theEventNodeReferencesWereSetWasPublishedWithPayload(TableNode $payloadTable)

No description

theEventNodeAggregateWasRemovedWasPublishedWithPayload(TableNode $payloadTable)

No description

iExpectTheNodeToHaveTheName(string $nodeAggregateId, string $nodeName)

No description

void
beforeEventSourcedScenarioDispatcher(BeforeScenarioScope $scope)

No description

void
iExpectTheContentStreamToExist(string $rawContentStreamId)

No description

void
iExpectTheContentStreamToNotExist(string $rawContentStreamId)

No description

void
iExpectTheWorkspaceToNotExist(string $rawWorkspaceName)

No description

void
iExpectTheFollowingWorkspaces(TableNode $payloadTable)

No description

void
workspaceStatusMatchesExpected(string $rawWorkspaceNames, string $status)

No description

void
iExpectTheGraphProjectionToConsistOfExactlyNodes(int $expectedNumberOfNodes)

No description

void
theSubtreeForNodeAggregateWithNodeTypesAndLevelsDeepShouldBe(string $serializedNodeAggregateId, string $serializedNodeTypeCriteria, int $maximumLevels, TableNode $table)

No description

void
iExpectTheContentStreamStatus(PyStringNode $pyStringNode)

No description

__construct(ContentGraphReadModelInterface $contentGraphReadModel)

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 iExpectTheSubgraphProjectionToConsistOfExactlyNodes(int $expectedNumberOfNodes)

No description

Parameters

int $expectedNumberOfNodes

Return Value

void

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

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

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

protected array readPayloadTable(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

array

Exceptions

Exception

protected EventStoreInterface getEventStore() deprecated

deprecated

No description

Return Value

EventStoreInterface

abstract protected PropertyValuesToWrite deserializeProperties(array $properties)

No description

Parameters

array $properties

Return Value

PropertyValuesToWrite

void theCommandAddDimensionShineThroughIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandMoveDimensionSpacePointIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandCreateNodeAggregateWithNodeIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandSetNodePropertiesIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandMoveNodeAggregateIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandSetNodeReferencesIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandRemoveNodeAggregateIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandChangeNodeAggregateNameIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandChangeNodeAggregateTypeIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandCreateNodeVariantIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandCreateRootNodeAggregateWithNodeIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandUpdateRootNodeAggregateDimensionsIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandTagSubtreeIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandUntagSubtreeIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandDisableNodeAggregateIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandEnableNodeAggregateIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandCreateRootWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandCreateWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandChangeBaseWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandDeleteWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandDiscardIndividualNodesFromWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandDiscardWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandPublishIndividualNodesFromWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandPublishWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandRebaseWorkspaceIsExecutedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void theCommandIsExecutedWithPayloadAndExceptionsAreCaught(string $shortCommandName, TableNode $payloadTable)

No description

Parameters

string $shortCommandName
TableNode $payloadTable

Return Value

void

void theCommandIsExecutedWithJsonPayload(string $shortCommandName, string $payload)

No description

Parameters

string $shortCommandName
string $payload

Return Value

void

void theCommandIsExecutedWithJsonPayloadAndExceptionsAreCaught(string $shortCommandName, string $payload)

No description

Parameters

string $shortCommandName
string $payload

Return Value

void

void theFollowingCreateNodeAggregateWithNodeCommandsAreExecuted(string $shortCommandName, TableNode $table)

No description

Parameters

string $shortCommandName
TableNode $table

Return Value

void

protected array addDefaultCommandArgumentValues(string $commandClassName, array $commandArguments)

No description

Parameters

string $commandClassName
array $commandArguments

Return Value

array

protected NodeReferencesToWrite mapRawNodeReferencesToNodeReferencesToWrite(array $deserializedTableContent)

No description

Parameters

array $deserializedTableContent

Return Value

NodeReferencesToWrite

static protected string resolveShortCommandName(string $shortCommandName)

No description

Parameters

string $shortCommandName

Return Value

string

abstract protected void publishEvent(string $eventType, StreamName $streamName, array $eventPayload)

No description

Parameters

string $eventType
StreamName $streamName
array $eventPayload

Return Value

void

theEventContentStreamWasClosedWasPublishedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

theEventRootNodeAggregateWithNodeWasCreatedWasPublishedToStreamWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

theEventNodeAggregateWithNodeWasCreatedWasPublishedToStreamWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

theEventSubtreeWasTaggedWasPublishedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

theEventSubtreeWasUntaggedWasPublishedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

theEventNodePropertiesWereSetWasPublishedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

iExpectThisNodeToNotHaveTheProperty(string $propertyName)

No description

Parameters

string $propertyName

theEventNodeAggregateWasMovedWasPublishedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

theEventNodeReferencesWereSetWasPublishedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

theEventNodeAggregateWasRemovedWasPublishedWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

iExpectTheNodeToHaveTheName(string $nodeAggregateId, string $nodeName)

No description

Parameters

string $nodeAggregateId
string $nodeName

theEventRootWorkspaceWasCreatedWasPublishedToStreamWithPayload(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Exceptions

Exception

void beforeEventSourcedScenarioDispatcher(BeforeScenarioScope $scope)

No description

Parameters

BeforeScenarioScope $scope

Return Value

void

Exceptions

Exception

void iExpectTheContentStreamToExist(string $rawContentStreamId)

No description

Parameters

string $rawContentStreamId

Return Value

void

void iExpectTheContentStreamToNotExist(string $rawContentStreamId)

No description

Parameters

string $rawContentStreamId

Return Value

void

void iExpectTheWorkspaceToNotExist(string $rawWorkspaceName)

No description

Parameters

string $rawWorkspaceName

Return Value

void

void iExpectTheFollowingWorkspaces(TableNode $payloadTable)

No description

Parameters

TableNode $payloadTable

Return Value

void

void workspaceStatusMatchesExpected(string $rawWorkspaceNames, string $status)

No description

Parameters

string $rawWorkspaceNames
string $status

Return Value

void

void iExpectTheGraphProjectionToConsistOfExactlyNodes(int $expectedNumberOfNodes)

No description

Parameters

int $expectedNumberOfNodes

Return Value

void

void theSubtreeForNodeAggregateWithNodeTypesAndLevelsDeepShouldBe(string $serializedNodeAggregateId, string $serializedNodeTypeCriteria, int $maximumLevels, TableNode $table)

No description

Parameters

string $serializedNodeAggregateId
string $serializedNodeTypeCriteria
int $maximumLevels
TableNode $table

Return Value

void

void iPruneRemovedContentStreamsFromTheEventStream()

No description

Return Value

void

void iExpectTheContentStreamStatus(PyStringNode $pyStringNode)

No description

Parameters

PyStringNode $pyStringNode

Return Value

void

abstract protected ContentRepositoryServiceInterface getContentRepositoryService(ContentRepositoryServiceFactoryInterface $factory)

No description

final protected ContentGraphReadModelInterface getContentGraphReadModel()

No description

__construct(ContentGraphReadModelInterface $contentGraphReadModel)

No description

Parameters

ContentGraphReadModelInterface $contentGraphReadModel