PHP Class Neos\Neos\Tests\Unit\ViewHelpers\EditableViewHelperTest

Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$editableViewHelper Neos\Neos\ViewHelpers\ContentElement\EditableViewHelper
$mockContentContext Neos\Neos\Domain\Service\ContentContext
$mockContentElementEditableService Neos\Neos\Service\ContentElementEditableService
$mockNode Neos\ContentRepository\Domain\Model\NodeInterface
$mockNodeAuthorizationService Neos\ContentRepository\Service\AuthorizationService
$mockPrivilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$mockTemplateImplementation Neos\Fusion\TypoScriptObjects\TemplateImplementation
$mockTsContext array
$mockTsRuntime Neos\Fusion\Core\Runtime
$mockView Neos\Fusion\TypoScriptObjects\Helpers\FluidView
$templateVariables array

Public Methods

Method Description
renderCallsContentElementEditableServiceForAugmentation ( )
renderSetsTheChildNodesAsTagContentIfTheyAreSet ( )
renderSetsThePropertyValueAsTagContentIfItExists ( )
renderThrowsExceptionIfTheGivenPropertyIsNotAccessible ( )
renderThrowsExceptionIfTheTsTemplateObjectIsNotSet ( )
renderUsesTheNodeArgumentIfSet ( )
setUp ( )

Protected Methods

Method Description
injectDependenciesIntoViewHelper ( AbstractViewHelper $viewHelper ) : void
injectTypoScriptObject ( ) Mocks access to the TypoScriptObject

Method Details

injectDependenciesIntoViewHelper() protected method

protected injectDependenciesIntoViewHelper ( AbstractViewHelper $viewHelper ) : void
$viewHelper Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
return void

injectTypoScriptObject() protected method

Mocks access to the TypoScriptObject
protected injectTypoScriptObject ( )

renderCallsContentElementEditableServiceForAugmentation() public method

renderSetsTheChildNodesAsTagContentIfTheyAreSet() public method

renderSetsThePropertyValueAsTagContentIfItExists() public method

renderThrowsExceptionIfTheGivenPropertyIsNotAccessible() public method

renderThrowsExceptionIfTheTsTemplateObjectIsNotSet() public method

renderUsesTheNodeArgumentIfSet() public method

setUp() public method

public setUp ( )

Property Details

$editableViewHelper protected property

protected EditableViewHelper,Neos\Neos\ViewHelpers\ContentElement $editableViewHelper
return Neos\Neos\ViewHelpers\ContentElement\EditableViewHelper

$mockContentContext protected property

protected ContentContext,Neos\Neos\Domain\Service $mockContentContext
return Neos\Neos\Domain\Service\ContentContext

$mockContentElementEditableService protected property

protected ContentElementEditableService,Neos\Neos\Service $mockContentElementEditableService
return Neos\Neos\Service\ContentElementEditableService

$mockNode protected property

protected NodeInterface,Neos\ContentRepository\Domain\Model $mockNode
return Neos\ContentRepository\Domain\Model\NodeInterface

$mockNodeAuthorizationService protected property

protected AuthorizationService,Neos\ContentRepository\Service $mockNodeAuthorizationService
return Neos\ContentRepository\Service\AuthorizationService

$mockPrivilegeManager protected property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $mockPrivilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$mockTemplateImplementation protected property

protected TemplateImplementation,Neos\Fusion\TypoScriptObjects $mockTemplateImplementation
return Neos\Fusion\TypoScriptObjects\TemplateImplementation

$mockTsContext protected property

protected array $mockTsContext
return array

$mockTsRuntime protected property

protected Runtime,Neos\Fusion\Core $mockTsRuntime
return Neos\Fusion\Core\Runtime

$mockView protected property

protected FluidView,Neos\Fusion\TypoScriptObjects\Helpers $mockView
return Neos\Fusion\TypoScriptObjects\Helpers\FluidView

$templateVariables protected property

protected array $templateVariables
return array