trait GraphStateTrait (View source)

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 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
protected GraphState> $graphState_memorisedGraphStates
protected int $graphState_snapshotCountPerScenario
protected string|null $graphState_currentFeatureFile
protected string|null $graphState_currentScenarioTitle

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
iRememberNodeAggregateIdOfNodesChildAs(string $parentNodeAggregateId, string $childNodeName, string $indexName)

No description

void
setupGraphStates(BeforeScenarioScope $scope)

No description

void
iMemoriseTheLocalGraphStateForNodeAggregateInWorkspace(string $serializedNodeAggregateId, string $serializedWorkspaceName)

No description

void
iMemoriseTheLocalGraphStateForNodeAggregateInAllWorkspaces(string $serializedNodeAggregateId)

No description

void
iMemoriseTheGlobalGraphState()

No description

void
iExpectTheGraphStateForWorkspaceToBeUnchanged(string $serializedWorkspaceName)

No description

void
iExpectTheGraphStateForWorkspaceToEqualThatOfWorkspace(string $serializedWorkspaceName, string $serializedOtherWorkspaceName)

No description

void
iExpectTheGraphStateForWorkspaceToHaveChangedAsDeclaredInTheSnapshot(string $serializedWorkspaceName)

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 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 setupGraphStates(BeforeScenarioScope $scope)

No description

Parameters

BeforeScenarioScope $scope

Return Value

void

void iMemoriseTheLocalGraphStateForNodeAggregateInWorkspace(string $serializedNodeAggregateId, string $serializedWorkspaceName)

No description

Parameters

string $serializedNodeAggregateId
string $serializedWorkspaceName

Return Value

void

void iMemoriseTheLocalGraphStateForNodeAggregateInAllWorkspaces(string $serializedNodeAggregateId)

No description

Parameters

string $serializedNodeAggregateId

Return Value

void

void iMemoriseTheGlobalGraphState()

No description

Return Value

void

void iExpectTheGraphStateForWorkspaceToBeUnchanged(string $serializedWorkspaceName)

No description

Parameters

string $serializedWorkspaceName

Return Value

void

void iExpectTheGraphStateForWorkspaceToEqualThatOfWorkspace(string $serializedWorkspaceName, string $serializedOtherWorkspaceName)

No description

Parameters

string $serializedWorkspaceName
string $serializedOtherWorkspaceName

Return Value

void

void iExpectTheGraphStateForWorkspaceToHaveChangedAsDeclaredInTheSnapshot(string $serializedWorkspaceName)

No description

Parameters

string $serializedWorkspaceName

Return Value

void