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!
Afficher le fichier Open project: neos/neos-development-collection

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode 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

Méthode Description
getPersistenceManager ( ) : Neos\Flow\Persistence\PersistenceManagerInterface
getPublishingService ( ) : Neos\ContentRepository\Domain\Service\PublishingServiceInterface

Method Details

beforeScenarioDispatcher() public méthode

public beforeScenarioDispatcher ( ) : void
Résultat void

createWorkspaceIfNeeded() protected méthode

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

getContextForProperties() protected méthode

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

getObjectManager() abstract protected méthode

abstract protected getObjectManager ( ) : mixed
Résultat mixed

iAdoptTheNodeToTheFollowingContext() public méthode

public iAdoptTheNodeToTheFollowingContext ( $recursive, $table )

iCopyANodeToPath() public méthode

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

iDiscardTheWorkspace() public méthode

public iDiscardTheWorkspace ( $workspaceName )

iExpectToHaveUnpublishedNodesForTheFollowingContext() public méthode

iGetANodeByIdentifierWithTheFollowingContext() public méthode

public iGetANodeByIdentifierWithTheFollowingContext ( $identifier, $table )

iGetANodeByPathWithTheFollowingContext() public méthode

public iGetANodeByPathWithTheFollowingContext ( $path, $table )

iGetNodeVariantsOfWithTheFollowingContext() public méthode

public iGetNodeVariantsOfWithTheFollowingContext ( $identifier, $table )

iGetOtherNodeVariantsOfTheNode() public méthode

iGetTheChildNodesOfWithFilterAndTheFollowingContext() public méthode

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

iGetTheChildNodesOfWithTheFollowingContext() public méthode

iGetTheNodesOnPathToWithTheFollowingContext() public méthode

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

iHaveTheFollowingContentDimensions() public méthode

iHaveTheFollowingNodes() public méthode

public iHaveTheFollowingNodes ( $table )

iHaveTheFollowingNodetypesConfiguration() public méthode

public iHaveTheFollowingNodetypesConfiguration ( $additional, $nodeTypesConfiguration )

iHideTheNode() public méthode

public iHideTheNode ( )

iMakeTheNodevisible() public méthode

public iMakeTheNodevisible ( )

iMoveANodeToPath() public méthode

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

iMoveTheNodeIntoTheNodeWithPath() public méthode

public iMoveTheNodeIntoTheNodeWithPath ( $action, $referenceNodePath )

iPublishTheNode() public méthode

public iPublishTheNode ( )

iPublishTheWorkspace() public méthode

public iPublishTheWorkspace ( $sourceWorkspaceName )

iRemoveTheNode() public méthode

public iRemoveTheNode ( )

iRenameTheNodeTo() public méthode

public iRenameTheNodeTo ( $newName )

iRetrieveTheCurrentSiteNode() public méthode

iRunGetNodeWithThePathOnTheCurrentNode() public méthode

iSetSomePropertyAndRenameTheNodeTo() public méthode

iSetTheNodeNameTo() public méthode

public iSetTheNodeNameTo ( $name )

iSetTheNodePropertyTo() public méthode

public iSetTheNodePropertyTo ( $propertyName, $propertyValue )

iShouldBeAbleToCreateAChildNodeOfType() public méthode

public iShouldBeAbleToCreateAChildNodeOfType ( $not, $nodeTypeName )

iShouldBeAbleToRenameTheNodeTo() public méthode

public iShouldBeAbleToRenameTheNodeTo ( $not, $newName )

iShouldHaveANodeWithPathAndValueForPropertyForTheFollowingContext() public méthode

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

iShouldHaveNodes() public méthode

public iShouldHaveNodes ( $count )

iShouldHaveOneNode() public méthode

public iShouldHaveOneNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
Résultat Neos\ContentRepository\Domain\Model\NodeInterface

iShouldHaveTheFollowingNodes() public méthode

public iShouldHaveTheFollowingNodes ( $orderIndependent, $table )

iUseThePublishingServiceToPublishNodesInTheWorkspace() public méthode

public iUseThePublishingServiceToPublishNodesInTheWorkspace ( $sourceWorkspaceName, $table )

printTheNodes() public méthode

public printTheNodes ( )

resetContentDimensions() public méthode

public resetContentDimensions ( ) : void
Résultat void

resetCustomNodeTypes() public méthode

resetNodeInstances() public méthode

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

theNodeLanguageShouldBe() public méthode

public theNodeLanguageShouldBe ( $language )

theNodePropertyShouldBe() public méthode

public theNodePropertyShouldBe ( $propertyName, $propertyValue )

theNodeShouldBeHiddenInIndex() public méthode

theNodeShouldHaveAProperty() public méthode

public theNodeShouldHaveAProperty ( $not, $propertyName )

theUnpublishedNodeCountInWorkspaceShouldBe() public méthode

public theUnpublishedNodeCountInWorkspaceShouldBe ( $workspaceName, $count )