PHP Class Neos\ContentRepository\Tests\Unit\Domain\Service\NodeTypeManagerTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Exibir arquivo Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$mockConfigurationManager Neos\Flow\Configuration\ConfigurationManager | PHPUnit_Framework_MockObject_MockObject
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$nodeTypesFixture array example node types

Public Methods

Method Description
aggregateNodeTypeFlagIsFalseByDefault ( )
aggregateNodeTypeFlagIsInherited ( )
createNodeTypeAlwaysThrowsAnException ( )
getNodeTypeAllowsToRetrieveFinalNodeTypes ( )
getNodeTypeReturnsFallbackNodeTypeIfConfigured ( )
getNodeTypeThrowsExceptionForUnknownNodeType ( )
getNodeTypeThrowsExceptionIfConfiguredFallbackNodeTypeCantBeFound ( )
getNodeTypeThrowsExceptionIfFinalNodeTypeIsSubclassed ( )
getNodeTypeThrowsExceptionIfNoFallbackNodeTypeIsConfigured ( )
getNodeTypesContainsAbstractNodeTypes ( )
getNodeTypesReturnsRegisteredNodeTypes ( )
getNodeTypesWithoutIncludeAbstractContainsNoAbstractNodeTypes ( )
getSubNodeTypesContainsAbstractNodeTypes ( )
getSubNodeTypesReturnsInheritedNodeTypes ( )
getSubNodeTypesWithoutIncludeAbstractContainsNoAbstractNodeTypes ( )
hasNodeTypeReturnsFalseIfTheGivenNodeTypeIsNotFound ( )
hasNodeTypeReturnsTrueForAbstractNodeTypes ( )
hasNodeTypeReturnsTrueIfTheGivenNodeTypeIsFound ( )
nodeTypeConfigurationIsMergedTogether ( )
setUp ( )

Protected Methods

Method Description
prepareNodeTypeManager ( array $nodeTypesFixtureData ) Prepares $this->nodeTypeManager with a fresh instance with all mocks and makes the given fixture data available as NodeTypes configuration

Method Details

aggregateNodeTypeFlagIsFalseByDefault() public method

aggregateNodeTypeFlagIsInherited() public method

createNodeTypeAlwaysThrowsAnException() public method

getNodeTypeAllowsToRetrieveFinalNodeTypes() public method

getNodeTypeReturnsFallbackNodeTypeIfConfigured() public method

getNodeTypeThrowsExceptionForUnknownNodeType() public method

getNodeTypeThrowsExceptionIfConfiguredFallbackNodeTypeCantBeFound() public method

getNodeTypeThrowsExceptionIfFinalNodeTypeIsSubclassed() public method

getNodeTypeThrowsExceptionIfNoFallbackNodeTypeIsConfigured() public method

getNodeTypesContainsAbstractNodeTypes() public method

getNodeTypesReturnsRegisteredNodeTypes() public method

getNodeTypesWithoutIncludeAbstractContainsNoAbstractNodeTypes() public method

getSubNodeTypesContainsAbstractNodeTypes() public method

getSubNodeTypesReturnsInheritedNodeTypes() public method

getSubNodeTypesWithoutIncludeAbstractContainsNoAbstractNodeTypes() public method

hasNodeTypeReturnsFalseIfTheGivenNodeTypeIsNotFound() public method

hasNodeTypeReturnsTrueForAbstractNodeTypes() public method

hasNodeTypeReturnsTrueIfTheGivenNodeTypeIsFound() public method

nodeTypeConfigurationIsMergedTogether() public method

prepareNodeTypeManager() protected method

Prepares $this->nodeTypeManager with a fresh instance with all mocks and makes the given fixture data available as NodeTypes configuration
protected prepareNodeTypeManager ( array $nodeTypesFixtureData )
$nodeTypesFixtureData array

setUp() public method

public setUp ( )

Property Details

$mockConfigurationManager protected_oe property

protected ConfigurationManager,Neos\Flow\Configuration|PHPUnit_Framework_MockObject_MockObject $mockConfigurationManager
return Neos\Flow\Configuration\ConfigurationManager | PHPUnit_Framework_MockObject_MockObject

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager

$nodeTypesFixture protected_oe property

example node types
protected array $nodeTypesFixture
return array