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

Public Member Functions

 setup ()
 
 validateReturnsNoErrorIfTheGivenValueIsNull ()
 
 validateReturnsNoErrorIfTheGivenValueIsAnEmptyString ()
 
 stringLengthValidatorReturnsNoErrorForAStringShorterThanMaxLengthAndLongerThanMinLength ()
 
 stringLengthValidatorReturnsErrorForAStringShorterThanThanMinLength ()
 
 stringLengthValidatorReturnsErrorsForAStringLongerThanThanMaxLength ()
 
 stringLengthValidatorReturnsNoErrorsForAStringLongerThanThanMinLengthAndMaxLengthNotSpecified ()
 
 stringLengthValidatorReturnsNoErrorsForAStringShorterThanThanMaxLengthAndMinLengthNotSpecified ()
 
 stringLengthValidatorReturnsNoErrorsForAStringLengthEqualToMaxLengthAndMinLengthNotSpecified ()
 
 stringLengthValidatorReturnsNoErrorForAStringLengthEqualToMinLengthAndMaxLengthNotSpecified ()
 
 stringLengthValidatorReturnsNoErrorIfMinLengthAndMaxLengthAreEqualAndTheGivenStringMatchesThisValue ()
 
 stringLengthValidatorReturnsNoErrorsfTheStringLengthIsEqualToMaxLength ()
 
 stringLengthValidatorReturnsNoErrorIfTheStringLengthIsEqualToMinLength ()
 
 stringLengthValidatorThrowsAnExceptionIfMinLengthIsGreaterThanMaxLength ()
 
 stringLengthValidatorInsertsAnErrorObjectIfValidationFails ()
 
 stringLengthValidatorCanHandleAnObjectWithAToStringMethod ()
 
 validateReturnsErrorsIfTheGivenObjectCanNotBeConvertedToAString ()
 
 validateRegardsMultibyteStringsCorrectly ()
 

Protected Attributes

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

Additional Inherited Members

- 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= '')
 

Detailed Description

Test case

Definition at line 28 of file StringLengthValidatorTest.php.

Member Function Documentation

setup ( )

Definition at line 32 of file StringLengthValidatorTest.php.

stringLengthValidatorCanHandleAnObjectWithAToStringMethod ( )
stringLengthValidatorInsertsAnErrorObjectIfValidationFails ( )
stringLengthValidatorReturnsErrorForAStringShorterThanThanMinLength ( )
stringLengthValidatorReturnsErrorsForAStringLongerThanThanMaxLength ( )
stringLengthValidatorReturnsNoErrorForAStringLengthEqualToMinLengthAndMaxLengthNotSpecified ( )
stringLengthValidatorReturnsNoErrorForAStringShorterThanMaxLengthAndLongerThanMinLength ( )
stringLengthValidatorReturnsNoErrorIfMinLengthAndMaxLengthAreEqualAndTheGivenStringMatchesThisValue ( )
stringLengthValidatorReturnsNoErrorIfTheStringLengthIsEqualToMinLength ( )
stringLengthValidatorReturnsNoErrorsForAStringLengthEqualToMaxLengthAndMinLengthNotSpecified ( )
stringLengthValidatorReturnsNoErrorsForAStringLongerThanThanMinLengthAndMaxLengthNotSpecified ( )
stringLengthValidatorReturnsNoErrorsForAStringShorterThanThanMaxLengthAndMinLengthNotSpecified ( )
stringLengthValidatorReturnsNoErrorsfTheStringLengthIsEqualToMaxLength ( )
stringLengthValidatorThrowsAnExceptionIfMinLengthIsGreaterThanMaxLength ( )
validateRegardsMultibyteStringsCorrectly ( )
Test:

Definition at line 269 of file StringLengthValidatorTest.php.

validateReturnsErrorsIfTheGivenObjectCanNotBeConvertedToAString ( )
validateReturnsNoErrorIfTheGivenValueIsAnEmptyString ( )
Test:

Definition at line 55 of file StringLengthValidatorTest.php.

validateReturnsNoErrorIfTheGivenValueIsNull ( )
Test:

Definition at line 47 of file StringLengthValidatorTest.php.

Member Data Documentation

$validator
protected

Definition at line 42 of file StringLengthValidatorTest.php.

Referenced by StringLengthValidatorTest\stringLengthValidatorCanHandleAnObjectWithAToStringMethod(), StringLengthValidatorTest\stringLengthValidatorInsertsAnErrorObjectIfValidationFails(), StringLengthValidatorTest\stringLengthValidatorReturnsErrorForAStringShorterThanThanMinLength(), StringLengthValidatorTest\stringLengthValidatorReturnsErrorsForAStringLongerThanThanMaxLength(), StringLengthValidatorTest\stringLengthValidatorReturnsNoErrorForAStringLengthEqualToMinLengthAndMaxLengthNotSpecified(), StringLengthValidatorTest\stringLengthValidatorReturnsNoErrorForAStringShorterThanMaxLengthAndLongerThanMinLength(), StringLengthValidatorTest\stringLengthValidatorReturnsNoErrorIfMinLengthAndMaxLengthAreEqualAndTheGivenStringMatchesThisValue(), StringLengthValidatorTest\stringLengthValidatorReturnsNoErrorIfTheStringLengthIsEqualToMinLength(), StringLengthValidatorTest\stringLengthValidatorReturnsNoErrorsForAStringLengthEqualToMaxLengthAndMinLengthNotSpecified(), StringLengthValidatorTest\stringLengthValidatorReturnsNoErrorsForAStringLongerThanThanMinLengthAndMaxLengthNotSpecified(), StringLengthValidatorTest\stringLengthValidatorReturnsNoErrorsForAStringShorterThanThanMaxLengthAndMinLengthNotSpecified(), StringLengthValidatorTest\stringLengthValidatorReturnsNoErrorsfTheStringLengthIsEqualToMaxLength(), StringLengthValidatorTest\stringLengthValidatorThrowsAnExceptionIfMinLengthIsGreaterThanMaxLength(), and StringLengthValidatorTest\validateReturnsErrorsIfTheGivenObjectCanNotBeConvertedToAString().

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

Definition at line 30 of file StringLengthValidatorTest.php.