CRTestSuiteTrait
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
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
void
iAmInContentRepository(string $contentRepositoryId)
No description
abstract protected ContentRepository
getContentRepository(ContentRepositoryId $id)
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
ContentSubgraphInterface
getCurrentSubgraph()
No description
void
iRememberNodeAggregateIdOfNodesChildAs(string $parentNodeAggregateId, string $childNodeName, string $indexName)
No description
protected NodeAggregateId|null
getCurrentNodeAggregateId()
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
protected 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
iExpectThisNodeAggregateToBeUnnamed()
No description
void
iExpectThisNodeAggregateToHaveTheName(string $serializedExpectedNodeName)
No description
void
iExpectThisNodeAggregateToHaveNoParentNodeAggregates()
No description
void
iExpectThisNodeAggregateToHaveTheParentNodeAggregates(string $serializedExpectedNodeAggregateIds)
No description
void
iExpectThisNodeAggregateToHaveNoChildNodeAggregates()
No description
void
iExpectThisNodeAggregateToHaveTheChildNodeAggregates(string $serializedExpectedNodeAggregateIds)
No description
protected void
assertOnCurrentNodeAggregate(callable $assertions)
No description
protected void
expectCurrentNodeAggregate()
No description
protected NodeAggregateId|null
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
protected 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
iExpectThisNodeToHaveNoProperties()
No description
void
iExpectThisNodeToHaveTheFollowingReferences(TableNode $expectedReferences)
No description
void
iExpectThisNodeToHaveNoReferences()
No description
void
iExpectThisNodeToBeReferencedBy(TableNode $expectedReferences)
No description
void
iExpectThisNodeToNotBeReferenced()
No description
void
iExpectThisNodeToBeTheChildOfNode(string $serializedParentNodeDiscriminator)
No description
void
iExpectThisNodeToHaveNoParentNode()
No description
void
iExpectThisNodeToHaveTheFollowingChildNodes(TableNode $expectedChildNodesTable)
No description
void
iExpectThisNodeToHaveNoChildNodes()
No description
void
iExpectThisNodeToHaveTheFollowingPrecedingSiblings(TableNode $expectedPrecedingSiblingsTable)
No description
void
iExpectThisNodeToHaveNoPrecedingSiblings()
No description
void
iExpectThisNodeToHaveTheFollowingSucceedingSiblings(TableNode $expectedSucceedingSiblingsTable)
No description
void
iExpectThisNodeToHaveNoSucceedingSiblings()
No description
protected void
assertOnCurrentNode(callable $assertions)
No description
protected void
expectCurrentNode()
No description
protected array
readPayloadTable(TableNode $payloadTable)
No description
protected EventStoreInterface
getEventStore()
deprecated
deprecated
No description
abstract protected PropertyValuesToWrite
deserializeProperties(array $properties)
No description
void
theCommandAddDimensionShineThroughIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandMoveDimensionSpacePointIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandCreateNodeAggregateWithNodeIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandSetNodePropertiesIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandMoveNodeAggregateIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandSetNodeReferencesIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandRemoveNodeAggregateIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandChangeNodeAggregateNameIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandChangeNodeAggregateTypeIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandCreateNodeVariantIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandCreateRootNodeAggregateWithNodeIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandUpdateRootNodeAggregateDimensionsIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandTagSubtreeIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandUntagSubtreeIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandDisableNodeAggregateIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandEnableNodeAggregateIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandCreateRootWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandCreateWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandChangeBaseWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandDeleteWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandDiscardIndividualNodesFromWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandDiscardWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandPublishIndividualNodesFromWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandPublishWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
No description
void
theCommandRebaseWorkspaceIsExecutedWithPayload(TableNode $payloadTable)
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
protected array
addDefaultCommandArgumentValues(string $commandClassName, array $commandArguments)
No description
protected NodeReferencesToWrite
mapRawNodeReferencesToNodeReferencesToWrite(array $deserializedTableContent)
No description
static protected string
resolveShortCommandName(string $shortCommandName)
No description
abstract protected void
publishEvent(string $eventType, StreamName $streamName, array $eventPayload)
No description
ContentRepositoryServiceInterface
build(ContentRepositoryServiceFactoryDependencies $serviceFactoryDependencies)
No description
theEventContentStreamWasClosedWasPublishedWithPayload(TableNode $payloadTable)
No description
theEventRootNodeAggregateWithNodeWasCreatedWasPublishedToStreamWithPayload(TableNode $payloadTable)
No description
theEventNodeAggregateWithNodeWasCreatedWasPublishedToStreamWithPayload(TableNode $payloadTable)
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
theEventNodeReferencesWereSetWasPublishedWithPayload(TableNode $payloadTable)
No description
theEventNodeAggregateWasRemovedWasPublishedWithPayload(TableNode $payloadTable)
No description
iExpectTheNodeToHaveTheName(string $nodeAggregateId, string $nodeName)
No description
theEventRootWorkspaceWasCreatedWasPublishedToStreamWithPayload(TableNode $payloadTable)
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
iPruneRemovedContentStreamsFromTheEventStream()
No description
void
iExpectTheContentStreamStatus(PyStringNode $pyStringNode)
No description
abstract protected ContentRepositoryServiceInterface
getContentRepositoryService(ContentRepositoryServiceFactoryInterface $factory)
No description
final protected ContentGraphReadModelInterface
getContentGraphReadModel()
No description
__construct(ContentGraphReadModelInterface $contentGraphReadModel)
No description