TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest:
TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\FormFieldViewHelperBaseTestcase TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 selectCorrectlySetsTagName ()
 
 selectCreatesExpectedOptions ()
 
 selectCreatesExpectedOptionsWithArraysAndOptionValueFieldAndOptionLabelFieldSet ()
 
 selectCreatesExpectedOptionsWithStdClassesAndOptionValueFieldAndOptionLabelFieldSet ()
 
 selectCreatesExpectedOptionsWithArrayObjectsAndOptionValueFieldAndOptionLabelFieldSet ()
 
 anEmptyOptionTagIsRenderedIfOptionsArrayIsEmptyToAssureXhtmlCompatibility ()
 
 OrderOfOptionsIsNotAlteredByDefault ()
 
 optionsAreSortedByLabelIfSortByOptionLabelIsSet ()
 
 optionsAreSortedByLabelIfSortByOptionLabelIsSetAndLocaleEqualsUtf8 ()
 
 multipleSelectCreatesExpectedOptions ()
 
 selectOnDomainObjectsCreatesExpectedOptions ()
 
 multipleSelectOnDomainObjectsCreatesExpectedOptions ()
 
 selectWithoutFurtherConfigurationOnDomainObjectsUsesUuidForValueAndLabel ()
 
 selectWithoutFurtherConfigurationOnDomainObjectsUsesToStringForLabelIfAvailable ()
 
 selectOnDomainObjectsThrowsExceptionIfNoValueCanBeFound ()
 
 renderCallsSetErrorClassAttribute ()
 
 allOptionsAreSelectedIfSelectAllIsTrue ()
 
 selectAllHasNoEffectIfValueIsSet ()
 
 optionsContainPrependedItemWithEmptyValueIfPrependOptionLabelIsSet ()
 
 optionsContainPrependedItemWithCorrectValueIfPrependOptionLabelAndPrependOptionValueAreSet ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\FormFieldViewHelperBaseTestcase
 setUp ()
 
 injectDependenciesIntoViewHelper (\TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper $viewHelper)
 
- Protected Member Functions inherited from TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase
 setUp ()
 
 injectDependenciesIntoViewHelper (\TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper $viewHelper)
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $viewHelper
 
 $backupLocales = []
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\FormFieldViewHelperBaseTestcase
 $mockConfigurationManager
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase
 $viewHelperVariableContainer
 
 $templateVariableContainer
 
 $uriBuilder
 
 $controllerContext
 
 $tagBuilder
 
 $arguments
 
 $request
 
 $renderingContext
 
 $mvcPropertyMapperConfigurationService
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test for the "Select" Form view helper

Definition at line 17 of file SelectViewHelperTest.php.

Member Function Documentation

◆ allOptionsAreSelectedIfSelectAllIsTrue()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::allOptionsAreSelectedIfSelectAllIsTrue ( )

◆ anEmptyOptionTagIsRenderedIfOptionsArrayIsEmptyToAssureXhtmlCompatibility()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::anEmptyOptionTagIsRenderedIfOptionsArrayIsEmptyToAssureXhtmlCompatibility ( )

◆ multipleSelectCreatesExpectedOptions()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::multipleSelectCreatesExpectedOptions ( )

◆ multipleSelectOnDomainObjectsCreatesExpectedOptions()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::multipleSelectOnDomainObjectsCreatesExpectedOptions ( )

◆ optionsAreSortedByLabelIfSortByOptionLabelIsSet()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::optionsAreSortedByLabelIfSortByOptionLabelIsSet ( )

◆ optionsAreSortedByLabelIfSortByOptionLabelIsSetAndLocaleEqualsUtf8()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::optionsAreSortedByLabelIfSortByOptionLabelIsSetAndLocaleEqualsUtf8 ( )

◆ optionsContainPrependedItemWithCorrectValueIfPrependOptionLabelAndPrependOptionValueAreSet()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::optionsContainPrependedItemWithCorrectValueIfPrependOptionLabelAndPrependOptionValueAreSet ( )

◆ optionsContainPrependedItemWithEmptyValueIfPrependOptionLabelIsSet()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::optionsContainPrependedItemWithEmptyValueIfPrependOptionLabelIsSet ( )

◆ OrderOfOptionsIsNotAlteredByDefault()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::OrderOfOptionsIsNotAlteredByDefault ( )

◆ renderCallsSetErrorClassAttribute()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::renderCallsSetErrorClassAttribute ( )

◆ selectAllHasNoEffectIfValueIsSet()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectAllHasNoEffectIfValueIsSet ( )

◆ selectCorrectlySetsTagName()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectCorrectlySetsTagName ( )

◆ selectCreatesExpectedOptions()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectCreatesExpectedOptions ( )

◆ selectCreatesExpectedOptionsWithArrayObjectsAndOptionValueFieldAndOptionLabelFieldSet()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectCreatesExpectedOptionsWithArrayObjectsAndOptionValueFieldAndOptionLabelFieldSet ( )

◆ selectCreatesExpectedOptionsWithArraysAndOptionValueFieldAndOptionLabelFieldSet()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectCreatesExpectedOptionsWithArraysAndOptionValueFieldAndOptionLabelFieldSet ( )

◆ selectCreatesExpectedOptionsWithStdClassesAndOptionValueFieldAndOptionLabelFieldSet()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectCreatesExpectedOptionsWithStdClassesAndOptionValueFieldAndOptionLabelFieldSet ( )

◆ selectOnDomainObjectsCreatesExpectedOptions()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectOnDomainObjectsCreatesExpectedOptions ( )

◆ selectOnDomainObjectsThrowsExceptionIfNoValueCanBeFound()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectOnDomainObjectsThrowsExceptionIfNoValueCanBeFound ( )

◆ selectWithoutFurtherConfigurationOnDomainObjectsUsesToStringForLabelIfAvailable()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectWithoutFurtherConfigurationOnDomainObjectsUsesToStringForLabelIfAvailable ( )

◆ selectWithoutFurtherConfigurationOnDomainObjectsUsesUuidForValueAndLabel()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::selectWithoutFurtherConfigurationOnDomainObjectsUsesUuidForValueAndLabel ( )

◆ setUp()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::setUp ( )
protected

◆ tearDown()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::tearDown ( )
protected

Definition at line 44 of file SelectViewHelperTest.php.

Member Data Documentation

◆ $backupLocales

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::$backupLocales = []
protected

Definition at line 27 of file SelectViewHelperTest.php.

◆ $viewHelper

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\SelectViewHelperTest::$viewHelper
protected

Definition at line 22 of file SelectViewHelperTest.php.