PHP Class Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest

Inheritance: extends Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Form\FormFieldViewHelperBaseTestcase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$viewHelper Neos\FluidAdaptor\ViewHelpers\Form\SelectViewHelper

Public Methods

Method Description
allOptionsAreSelectedIfSelectAllIsTrue ( )
anEmptyOptionTagIsRenderedIfOptionsArrayIsEmptyToAssureXhtmlCompatibility ( )
getTranslatedLabelDataProvider ( )
getTranslatedLabelTests ( string $by, string $using, string $translatedId, string $translatedLabel, string $expectedResult )
getTranslatedLabelThrowsExceptionForInvalidLocales ( )
getTranslatedLabelThrowsExceptionForUnknownTranslateBy ( )
multipleSelectCreatesExpectedOptions ( )
multipleSelectCreatesExpectedOptionsInObjectAccessorMode ( )
multipleSelectOnDomainObjectsCreatesExpectedOptions ( )
multipleSelectOnDomainObjectsCreatesExpectedOptionsWithoutOptionValueField ( )
optionsAreSortedByLabelIfSortByOptionLabelIsSet ( )
optionsContainPrependedItemWithCorrectValueIfPrependOptionLabelAndPrependOptionValueAreSet ( )
optionsContainPrependedItemWithEmptyValueIfPrependOptionLabelIsSet ( )
orderOfOptionsIsNotAlteredByDefault ( )
prependedOptionLabelIsTranslatedIfTranslateArgumentIsSet ( )
renderCallsSetErrorClassAttribute ( )
selectAllHasNoEffectIfValueIsSet ( )
selectCorrectlySetsTagName ( )
selectCreatesExpectedOptions ( )
selectOnDomainObjectsCreatesExpectedOptions ( )
selectOnDomainObjectsThrowsExceptionIfNoValueCanBeFound ( )
selectWithoutFurtherConfigurationOnDomainObjectsUsesToStringForLabelIfAvailable ( )
selectWithoutFurtherConfigurationOnDomainObjectsUsesUuidForValueAndLabel ( )
setUp ( )
translateByIdAskForTranslationOfValueById ( )
translateByIdUsingLabelUsesLabel ( )
translateByLabelAskForTranslationOfLabelByLabel ( )
translateByLabelUsingValueUsesValue ( )
translateLabelIsCalledIfTranslateArgumentIsGiven ( )
translateOptionsAreObserved ( )

Method Details

allOptionsAreSelectedIfSelectAllIsTrue() public method

anEmptyOptionTagIsRenderedIfOptionsArrayIsEmptyToAssureXhtmlCompatibility() public method

getTranslatedLabelDataProvider() public method

getTranslatedLabelTests() public method

public getTranslatedLabelTests ( string $by, string $using, string $translatedId, string $translatedLabel, string $expectedResult )
$by string
$using string
$translatedId string
$translatedLabel string
$expectedResult string

getTranslatedLabelThrowsExceptionForInvalidLocales() public method

getTranslatedLabelThrowsExceptionForUnknownTranslateBy() public method

multipleSelectCreatesExpectedOptions() public method

multipleSelectCreatesExpectedOptionsInObjectAccessorMode() public method

multipleSelectOnDomainObjectsCreatesExpectedOptions() public method

multipleSelectOnDomainObjectsCreatesExpectedOptionsWithoutOptionValueField() public method

optionsAreSortedByLabelIfSortByOptionLabelIsSet() public method

optionsContainPrependedItemWithCorrectValueIfPrependOptionLabelAndPrependOptionValueAreSet() public method

optionsContainPrependedItemWithEmptyValueIfPrependOptionLabelIsSet() public method

orderOfOptionsIsNotAlteredByDefault() public method

prependedOptionLabelIsTranslatedIfTranslateArgumentIsSet() public method

renderCallsSetErrorClassAttribute() public method

selectAllHasNoEffectIfValueIsSet() public method

selectCorrectlySetsTagName() public method

selectCreatesExpectedOptions() public method

selectOnDomainObjectsCreatesExpectedOptions() public method

selectOnDomainObjectsThrowsExceptionIfNoValueCanBeFound() public method

selectWithoutFurtherConfigurationOnDomainObjectsUsesToStringForLabelIfAvailable() public method

selectWithoutFurtherConfigurationOnDomainObjectsUsesUuidForValueAndLabel() public method

setUp() public method

public setUp ( )

translateByIdAskForTranslationOfValueById() public method

translateByIdUsingLabelUsesLabel() public method

translateByLabelAskForTranslationOfLabelByLabel() public method

translateByLabelUsingValueUsesValue() public method

translateLabelIsCalledIfTranslateArgumentIsGiven() public method

translateOptionsAreObserved() public method

Property Details

$viewHelper protected property

protected SelectViewHelper,Neos\FluidAdaptor\ViewHelpers\Form $viewHelper
return Neos\FluidAdaptor\ViewHelpers\Form\SelectViewHelper