TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest:
TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\AbstractValidatorTestcase TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setup ()
 
 textValidatorReturnsNoErrorForASimpleString ()
 
 textValidatorAllowsTheNewLineCharacter ()
 
 textValidatorAllowsCommonSpecialCharacters ()
 
 textValidatorReturnsErrorForAStringWithHtml ()
 
 textValidatorCreatesTheCorrectErrorIfTheSubjectContainsHtmlEntities ()
 

Protected Attributes

 $validatorClassName = \TYPO3\CMS\Extbase\Validation\Validator\TextValidator::class
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\AbstractValidatorTestcase
 $validatorClassName
 
 $validator
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\AbstractValidatorTestcase
 setUp ()
 
 getValidator ($options=[])
 
 validatorOptions ($options)
 
- 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='')
 

Detailed Description

Testcase for the text validator

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

Definition at line 29 of file TextValidatorTest.php.

Member Function Documentation

◆ setup()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest::setup ( )

Definition at line 33 of file TextValidatorTest.php.

◆ textValidatorAllowsCommonSpecialCharacters()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest::textValidatorAllowsCommonSpecialCharacters ( )
Test:

Definition at line 58 of file TextValidatorTest.php.

◆ textValidatorAllowsTheNewLineCharacter()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest::textValidatorAllowsTheNewLineCharacter ( )
Test:

Definition at line 49 of file TextValidatorTest.php.

◆ textValidatorCreatesTheCorrectErrorIfTheSubjectContainsHtmlEntities()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest::textValidatorCreatesTheCorrectErrorIfTheSubjectContainsHtmlEntities ( )
Test:

Definition at line 75 of file TextValidatorTest.php.

◆ textValidatorReturnsErrorForAStringWithHtml()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest::textValidatorReturnsErrorForAStringWithHtml ( )
Test:

Definition at line 67 of file TextValidatorTest.php.

◆ textValidatorReturnsNoErrorForASimpleString()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest::textValidatorReturnsNoErrorForASimpleString ( )
Test:

Definition at line 41 of file TextValidatorTest.php.

Member Data Documentation

◆ $validatorClassName

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\TextValidatorTest::$validatorClassName = \TYPO3\CMS\Extbase\Validation\Validator\TextValidator::class
protected

Definition at line 31 of file TextValidatorTest.php.