PHP Trait Neos\ContentRepository\Tests\Behavior\Features\Bootstrap\NodeOperationsTrait

Note that this trait requires that the Flow Object Manager must be available via $this->getObjectManager(). Note: This trait expects the IsolatedBehatStepsTrait to be available!
Datei anzeigen Open project: neos/neos-development-collection

Public Methods

Method Description
beforeScenarioDispatcher ( ) : void
iAdoptTheNodeToTheFollowingContext ( $recursive, $table )
iCopyANodeToPath ( $position, $path, $table )
iDiscardTheWorkspace ( $workspaceName )
iExpectToHaveUnpublishedNodesForTheFollowingContext ( $nodeCount, $table )
iGetANodeByIdentifierWithTheFollowingContext ( $identifier, $table )
iGetANodeByPathWithTheFollowingContext ( $path, $table )
iGetNodeVariantsOfWithTheFollowingContext ( $identifier, $table )
iGetOtherNodeVariantsOfTheNode ( )
iGetTheChildNodesOfWithFilterAndTheFollowingContext ( $path, $filter, $table )
iGetTheChildNodesOfWithTheFollowingContext ( $path, $table )
iGetTheNodesOnPathToWithTheFollowingContext ( $startingPoint, $endPoint, $table )
iHaveTheFollowingContentDimensions ( $table )
iHaveTheFollowingNodes ( $table )
iHaveTheFollowingNodetypesConfiguration ( $additional, $nodeTypesConfiguration )
iHideTheNode ( )
iMakeTheNodevisible ( )
iMoveANodeToPath ( $position, $path, $table )
iMoveTheNodeIntoTheNodeWithPath ( $action, $referenceNodePath )
iPublishTheNode ( )
iPublishTheWorkspace ( $sourceWorkspaceName )
iRemoveTheNode ( )
iRenameTheNodeTo ( $newName )
iRetrieveTheCurrentSiteNode ( )
iRunGetNodeWithThePathOnTheCurrentNode ( $path )
iSetSomePropertyAndRenameTheNodeTo ( $newName )
iSetTheNodeNameTo ( $name )
iSetTheNodePropertyTo ( $propertyName, $propertyValue )
iShouldBeAbleToCreateAChildNodeOfType ( $not, $nodeTypeName )
iShouldBeAbleToRenameTheNodeTo ( $not, $newName )
iShouldHaveANodeWithPathAndValueForPropertyForTheFollowingContext ( $path, $propertyValue, $propertyName, $table )
iShouldHaveNodes ( $count )
iShouldHaveOneNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
iShouldHaveTheFollowingNodes ( $orderIndependent, $table )
iUseThePublishingServiceToPublishNodesInTheWorkspace ( $sourceWorkspaceName, $table )
printTheNodes ( )
resetContentDimensions ( ) : void
resetCustomNodeTypes ( )
resetNodeInstances ( ) : void Makes sure to reset all node instances which might still be stored in the NodeDataRepository, ContextFactory or NodeFactory.
theNodeLanguageShouldBe ( $language )
theNodePropertyShouldBe ( $propertyName, $propertyValue )
theNodeShouldBeHiddenInIndex ( )
theNodeShouldHaveAProperty ( $not, $propertyName )
theUnpublishedNodeCountInWorkspaceShouldBe ( $workspaceName, $count )

Protected Methods

Method Description
createWorkspaceIfNeeded ( string $workspaceName = null ) : void Make sure that the "live" workspace and the requested $workspaceName workspace exist.
getContextForProperties ( array $humanReadableContextProperties, boolean $addDimensionDefaults = false ) : Context
getObjectManager ( ) : mixed

Private Methods

Method Description
getPersistenceManager ( ) : Neos\Flow\Persistence\PersistenceManagerInterface
getPublishingService ( ) : Neos\ContentRepository\Domain\Service\PublishingServiceInterface

Method Details

beforeScenarioDispatcher() public method

public beforeScenarioDispatcher ( ) : void
return void

createWorkspaceIfNeeded() protected method

Make sure that the "live" workspace and the requested $workspaceName workspace exist.
protected createWorkspaceIfNeeded ( string $workspaceName = null ) : void
$workspaceName string
return void

getContextForProperties() protected method

protected getContextForProperties ( array $humanReadableContextProperties, boolean $addDimensionDefaults = false ) : Context
$humanReadableContextProperties array
$addDimensionDefaults boolean
return Neos\ContentRepository\Domain\Service\Context

getObjectManager() abstract protected method

abstract protected getObjectManager ( ) : mixed
return mixed

iAdoptTheNodeToTheFollowingContext() public method

public iAdoptTheNodeToTheFollowingContext ( $recursive, $table )

iCopyANodeToPath() public method

public iCopyANodeToPath ( $position, $path, $table )

iDiscardTheWorkspace() public method

public iDiscardTheWorkspace ( $workspaceName )

iExpectToHaveUnpublishedNodesForTheFollowingContext() public method

iGetANodeByIdentifierWithTheFollowingContext() public method

public iGetANodeByIdentifierWithTheFollowingContext ( $identifier, $table )

iGetANodeByPathWithTheFollowingContext() public method

public iGetANodeByPathWithTheFollowingContext ( $path, $table )

iGetNodeVariantsOfWithTheFollowingContext() public method

public iGetNodeVariantsOfWithTheFollowingContext ( $identifier, $table )

iGetOtherNodeVariantsOfTheNode() public method

iGetTheChildNodesOfWithFilterAndTheFollowingContext() public method

public iGetTheChildNodesOfWithFilterAndTheFollowingContext ( $path, $filter, $table )

iGetTheChildNodesOfWithTheFollowingContext() public method

iGetTheNodesOnPathToWithTheFollowingContext() public method

public iGetTheNodesOnPathToWithTheFollowingContext ( $startingPoint, $endPoint, $table )

iHaveTheFollowingContentDimensions() public method

iHaveTheFollowingNodes() public method

public iHaveTheFollowingNodes ( $table )

iHaveTheFollowingNodetypesConfiguration() public method

public iHaveTheFollowingNodetypesConfiguration ( $additional, $nodeTypesConfiguration )

iHideTheNode() public method

public iHideTheNode ( )

iMakeTheNodevisible() public method

public iMakeTheNodevisible ( )

iMoveANodeToPath() public method

public iMoveANodeToPath ( $position, $path, $table )

iMoveTheNodeIntoTheNodeWithPath() public method

public iMoveTheNodeIntoTheNodeWithPath ( $action, $referenceNodePath )

iPublishTheNode() public method

public iPublishTheNode ( )

iPublishTheWorkspace() public method

public iPublishTheWorkspace ( $sourceWorkspaceName )

iRemoveTheNode() public method

public iRemoveTheNode ( )

iRenameTheNodeTo() public method

public iRenameTheNodeTo ( $newName )

iRetrieveTheCurrentSiteNode() public method

iRunGetNodeWithThePathOnTheCurrentNode() public method

iSetSomePropertyAndRenameTheNodeTo() public method

iSetTheNodeNameTo() public method

public iSetTheNodeNameTo ( $name )

iSetTheNodePropertyTo() public method

public iSetTheNodePropertyTo ( $propertyName, $propertyValue )

iShouldBeAbleToCreateAChildNodeOfType() public method

public iShouldBeAbleToCreateAChildNodeOfType ( $not, $nodeTypeName )

iShouldBeAbleToRenameTheNodeTo() public method

public iShouldBeAbleToRenameTheNodeTo ( $not, $newName )

iShouldHaveANodeWithPathAndValueForPropertyForTheFollowingContext() public method

public iShouldHaveANodeWithPathAndValueForPropertyForTheFollowingContext ( $path, $propertyValue, $propertyName, $table )

iShouldHaveNodes() public method

public iShouldHaveNodes ( $count )

iShouldHaveOneNode() public method

public iShouldHaveOneNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
return Neos\ContentRepository\Domain\Model\NodeInterface

iShouldHaveTheFollowingNodes() public method

public iShouldHaveTheFollowingNodes ( $orderIndependent, $table )

iUseThePublishingServiceToPublishNodesInTheWorkspace() public method

public iUseThePublishingServiceToPublishNodesInTheWorkspace ( $sourceWorkspaceName, $table )

printTheNodes() public method

public printTheNodes ( )

resetContentDimensions() public method

public resetContentDimensions ( ) : void
return void

resetCustomNodeTypes() public method

resetNodeInstances() public method

Makes sure to reset all node instances which might still be stored in the NodeDataRepository, ContextFactory or NodeFactory.
public resetNodeInstances ( ) : void
return void

theNodeLanguageShouldBe() public method

public theNodeLanguageShouldBe ( $language )

theNodePropertyShouldBe() public method

public theNodePropertyShouldBe ( $propertyName, $propertyValue )

theNodeShouldBeHiddenInIndex() public method

theNodeShouldHaveAProperty() public method

public theNodeShouldHaveAProperty ( $not, $propertyName )

theUnpublishedNodeCountInWorkspaceShouldBe() public method

public theUnpublishedNodeCountInWorkspaceShouldBe ( $workspaceName, $count )