TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
CollectionValidatorTest Class Reference
Inheritance diagram for CollectionValidatorTest:
UnitTestCase BaseTestCase

Public Member Functions

 collectionValidatorReturnsNoErrorsForANullValue ()
 
 collectionValidatorFailsForAValueNotBeingACollection ()
 
 collectionValidatorValidatesEveryElementOfACollectionWithTheGivenElementValidator ()
 
 collectionValidatorValidatesNestedObjectStructuresWithoutEndlessLooping ()
 
 collectionValidatorIsValidEarlyReturnsOnUnitializedLazyObjectStorages ()
 
 collectionValidatorCallsCollectionElementValidatorWhenValidatingObjectStorages ()
 

Protected Member Functions

 getValidator (array $options=[], array $mockedMethods=['translateErrorMessage'])
 
 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from 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,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $validatorClassName = \TYPO3\CMS\Extbase\Validation\Validator\CollectionValidator::class
 
 $mockValidatorResolver
 
 $validator
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 27 of file CollectionValidatorTest.php.

Member Function Documentation

collectionValidatorCallsCollectionElementValidatorWhenValidatingObjectStorages ( )
Test:

Definition at line 176 of file CollectionValidatorTest.php.

collectionValidatorFailsForAValueNotBeingACollection ( )
Test:

Definition at line 78 of file CollectionValidatorTest.php.

collectionValidatorIsValidEarlyReturnsOnUnitializedLazyObjectStorages ( )
collectionValidatorReturnsNoErrorsForANullValue ( )
Test:

Definition at line 70 of file CollectionValidatorTest.php.

collectionValidatorValidatesEveryElementOfACollectionWithTheGivenElementValidator ( )
Test:

Definition at line 86 of file CollectionValidatorTest.php.

collectionValidatorValidatesNestedObjectStructuresWithoutEndlessLooping ( )
Test:

Definition at line 114 of file CollectionValidatorTest.php.

References BaseTestCase\getUniqueId().

getValidator ( array  $options = [],
array  $mockedMethods = ['translateErrorMessage'] 
)
protected
setUp ( )
protected

Member Data Documentation

$mockValidatorResolver
protected

Definition at line 37 of file CollectionValidatorTest.php.

$validatorClassName = \TYPO3\CMS\Extbase\Validation\Validator\CollectionValidator::class
protected

Definition at line 32 of file CollectionValidatorTest.php.