TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 constructingArgumentWithoutNameThrowsException ()
 
 constructingArgumentWithInvalidNameThrowsException ()
 
 passingDataTypeToConstructorReallySetsTheDataType ()
 
 setShortNameProvidesFluentInterface ()
 
 invalidShortNames ()
 
 shortNameShouldThrowExceptionIfInvalid ($invalidShortName)
 
 shortNameCanBeRetrievedAgain ()
 
 setRequiredShouldProvideFluentInterfaceAndReallySetRequiredState ()
 
 setDefaultValueShouldProvideFluentInterfaceAndReallySetDefaultValue ()
 
 setValidatorShouldProvideFluentInterfaceAndReallySetValidator ()
 
 setValueProvidesFluentInterface ()
 
 setValueUsesNullAsIs ()
 
 setValueUsesMatchingInstanceAsIs ()
 
 setValueShouldCallPropertyMapperCorrectlyAndStoreResultInValue ()
 
 setValueShouldBeFluentInterface ()
 
 setValueShouldSetValidationErrorsIfValidatorIsSetAndValidationFailed ()
 
 defaultPropertyMappingConfigurationDoesNotAllowCreationOrModificationOfObjects ()
 

Protected Member Functions

 setUp ()
 
 setupPropertyMapperAndSetValue ()
 
- 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

 $simpleValueArgument
 
 $objectArgument
 
 $mockPropertyMapper
 
 $mockConfigurationBuilder
 
 $mockConfiguration
 
- 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 case

Definition at line 27 of file ArgumentTest.php.

Member Function Documentation

◆ constructingArgumentWithInvalidNameThrowsException()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::constructingArgumentWithInvalidNameThrowsException ( )
Test:

Definition at line 73 of file ArgumentTest.php.

◆ constructingArgumentWithoutNameThrowsException()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::constructingArgumentWithoutNameThrowsException ( )
Test:

Definition at line 64 of file ArgumentTest.php.

◆ defaultPropertyMappingConfigurationDoesNotAllowCreationOrModificationOfObjects()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::defaultPropertyMappingConfigurationDoesNotAllowCreationOrModificationOfObjects ( )
Test:

Definition at line 235 of file ArgumentTest.php.

◆ invalidShortNames()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::invalidShortNames ( )
Returns
array

Definition at line 99 of file ArgumentTest.php.

◆ passingDataTypeToConstructorReallySetsTheDataType()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::passingDataTypeToConstructorReallySetsTheDataType ( )
Test:

Definition at line 81 of file ArgumentTest.php.

◆ setDefaultValueShouldProvideFluentInterfaceAndReallySetDefaultValue()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setDefaultValueShouldProvideFluentInterfaceAndReallySetDefaultValue ( )
Test:

Definition at line 141 of file ArgumentTest.php.

◆ setRequiredShouldProvideFluentInterfaceAndReallySetRequiredState()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setRequiredShouldProvideFluentInterfaceAndReallySetRequiredState ( )
Test:

Definition at line 131 of file ArgumentTest.php.

◆ setShortNameProvidesFluentInterface()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setShortNameProvidesFluentInterface ( )
Test:

Definition at line 90 of file ArgumentTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setUp ( )
protected

◆ setupPropertyMapperAndSetValue()

◆ setValidatorShouldProvideFluentInterfaceAndReallySetValidator()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setValidatorShouldProvideFluentInterfaceAndReallySetValidator ( )
Test:

Definition at line 151 of file ArgumentTest.php.

◆ setValueProvidesFluentInterface()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setValueProvidesFluentInterface ( )
Test:

Definition at line 162 of file ArgumentTest.php.

◆ setValueShouldBeFluentInterface()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setValueShouldBeFluentInterface ( )

◆ setValueShouldCallPropertyMapperCorrectlyAndStoreResultInValue()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setValueShouldCallPropertyMapperCorrectlyAndStoreResultInValue ( )

◆ setValueShouldSetValidationErrorsIfValidatorIsSetAndValidationFailed()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setValueShouldSetValidationErrorsIfValidatorIsSetAndValidationFailed ( )

◆ setValueUsesMatchingInstanceAsIs()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setValueUsesMatchingInstanceAsIs ( )
Test:

Definition at line 182 of file ArgumentTest.php.

◆ setValueUsesNullAsIs()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::setValueUsesNullAsIs ( )

◆ shortNameCanBeRetrievedAgain()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::shortNameCanBeRetrievedAgain ( )
Test:

Definition at line 122 of file ArgumentTest.php.

◆ shortNameShouldThrowExceptionIfInvalid()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::shortNameShouldThrowExceptionIfInvalid (   $invalidShortName)
Test:
invalidShortNames
Parameters
string$invalidShortName

Definition at line 114 of file ArgumentTest.php.

Member Data Documentation

◆ $mockConfiguration

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::$mockConfiguration
protected

Definition at line 43 of file ArgumentTest.php.

◆ $mockConfigurationBuilder

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::$mockConfigurationBuilder
protected

Definition at line 41 of file ArgumentTest.php.

◆ $mockPropertyMapper

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::$mockPropertyMapper
protected

Definition at line 39 of file ArgumentTest.php.

◆ $objectArgument

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::$objectArgument
protected

Definition at line 37 of file ArgumentTest.php.

◆ $simpleValueArgument

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ArgumentTest::$simpleValueArgument
protected

Definition at line 32 of file ArgumentTest.php.