TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 stgringLengthValidatorReturnsTrueForAStringShorterThanMaxLengthAndLongerThanMinLength ()
 
 stringLengthValidatorReturnsFalseForAStringShorterThanThanMinLength ()
 
 stringLengthValidatorReturnsFalseForAStringLongerThanThanMaxLength ()
 
 stringLengthValidatorReturnsTrueForAStringLongerThanThanMinLengthAndMaxLengthNotSpecified ()
 
 stringLengthValidatorReturnsTrueForAStringShorterThanThanMaxLengthAndMinLengthNotSpecified ()
 
 stringLengthValidatorReturnsTrueForAStringLengthEqualToMaxLengthAndMinLengthNotSpecified ()
 
 stringLengthValidatorReturnsTrueForAStringLengthEqualToMinLengthAndMaxLengthNotSpecified ()
 
 stringLengthValidatorReturnsTrueIfMinLengthAndMaxLengthAreEqualAndTheGivenStringMatchesThisValue ()
 
 stringLengthValidatorReturnsTrueIfTheStringLengthIsEqualToMaxLength ()
 
 stringLengthValidatorReturnsTrueIfTheStringLengthIsEqualToMinLength ()
 
 stringLengthValidatorThrowsAnExceptionIfMinLengthIsGreaterThanMaxLength ()
 
 stringLengthValidatorInsertsAnErrorObjectIfValidationFails ()
 
 stringLengthValidatorCanHandleAnObjectWithAToStringMethod ()
 
 stringLengthValidatorAddsAnErrorIfTheGivenObjectCanNotBeConvertedToAString ()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Test case

This testcase checks the expected behavior for Extbase < 1.4.0, to make sure we do not break backwards compatibility.

Definition at line 23 of file StringLengthValidatorTest.php.

Member Function Documentation

◆ stgringLengthValidatorReturnsTrueForAStringShorterThanMaxLengthAndLongerThanMinLength()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stgringLengthValidatorReturnsTrueForAStringShorterThanMaxLengthAndLongerThanMinLength ( )
Test:

Definition at line 28 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorAddsAnErrorIfTheGivenObjectCanNotBeConvertedToAString()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorAddsAnErrorIfTheGivenObjectCanNotBeConvertedToAString ( )

◆ stringLengthValidatorCanHandleAnObjectWithAToStringMethod()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorCanHandleAnObjectWithAToStringMethod ( )

◆ stringLengthValidatorInsertsAnErrorObjectIfValidationFails()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorInsertsAnErrorObjectIfValidationFails ( )
Test:

Definition at line 137 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsFalseForAStringLongerThanThanMaxLength()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsFalseForAStringLongerThanThanMaxLength ( )
Test:

Definition at line 48 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsFalseForAStringShorterThanThanMinLength()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsFalseForAStringShorterThanThanMinLength ( )
Test:

Definition at line 38 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsTrueForAStringLengthEqualToMaxLengthAndMinLengthNotSpecified()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsTrueForAStringLengthEqualToMaxLengthAndMinLengthNotSpecified ( )
Test:

Definition at line 77 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsTrueForAStringLengthEqualToMinLengthAndMaxLengthNotSpecified()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsTrueForAStringLengthEqualToMinLengthAndMaxLengthNotSpecified ( )
Test:

Definition at line 88 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsTrueForAStringLongerThanThanMinLengthAndMaxLengthNotSpecified()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsTrueForAStringLongerThanThanMinLengthAndMaxLengthNotSpecified ( )
Test:

Definition at line 59 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsTrueForAStringShorterThanThanMaxLengthAndMinLengthNotSpecified()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsTrueForAStringShorterThanThanMaxLengthAndMinLengthNotSpecified ( )
Test:

Definition at line 68 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsTrueIfMinLengthAndMaxLengthAreEqualAndTheGivenStringMatchesThisValue()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsTrueIfMinLengthAndMaxLengthAreEqualAndTheGivenStringMatchesThisValue ( )
Test:

Definition at line 97 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsTrueIfTheStringLengthIsEqualToMaxLength()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsTrueIfTheStringLengthIsEqualToMaxLength ( )
Test:

Definition at line 107 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorReturnsTrueIfTheStringLengthIsEqualToMinLength()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorReturnsTrueIfTheStringLengthIsEqualToMinLength ( )
Test:

Definition at line 117 of file StringLengthValidatorTest.php.

◆ stringLengthValidatorThrowsAnExceptionIfMinLengthIsGreaterThanMaxLength()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\StringLengthValidatorTest::stringLengthValidatorThrowsAnExceptionIfMinLengthIsGreaterThanMaxLength ( )
Test:

Definition at line 128 of file StringLengthValidatorTest.php.