PHP Класс eZ\Publish\Core\FieldType\Tests\StringLengthValidatorTest

Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
providerForValidateConstraintsKO ( )
providerForValidateConstraintsOK ( )
providerForValidateKO ( )
providerForValidateOK ( )
testConstraintsInitializeGet ( ) Tests setting and getting constraints.
testConstraintsSetGet ( ) Tests setting and getting constraints.
testConstructor ( ) This test ensure an StringLengthValidator can be created.
testGetBadConstraint ( ) Tests getting a wrong constraint.
testGetConstraintsSchema ( ) Test getting constraints schema.
testInitializeBadConstraint ( ) Tests initializing with a wrong constraint.
testSetBadConstraint ( ) Tests setting a wrong constraint.
testValidateConstraintsCorrectValues ( $constraints ) Tests validation of constraints.
testValidateConstraintsWrongValues ( $constraints, $expectedMessages, $values ) Tests validation of constraints.
testValidateCorrectValues ( $value ) Tests validating a correct value.
testValidateWrongValues ( $value, $messageSingular, $messagePlural, $values ) Tests validating a wrong value.

Защищенные методы

Метод Описание
getMaxStringLength ( ) : integer
getMinStringLength ( ) : integer

Описание методов

getMaxStringLength() защищенный Метод

protected getMaxStringLength ( ) : integer
Результат integer

getMinStringLength() защищенный Метод

protected getMinStringLength ( ) : integer
Результат integer

providerForValidateConstraintsKO() публичный Метод

providerForValidateConstraintsOK() публичный Метод

providerForValidateKO() публичный Метод

providerForValidateOK() публичный Метод

testConstraintsInitializeGet() публичный Метод

Tests setting and getting constraints.

testConstraintsSetGet() публичный Метод

Tests setting and getting constraints.

testConstructor() публичный Метод

This test ensure an StringLengthValidator can be created.
public testConstructor ( )

testGetBadConstraint() публичный Метод

Tests getting a wrong constraint.

testGetConstraintsSchema() публичный Метод

Test getting constraints schema.

testInitializeBadConstraint() публичный Метод

Tests initializing with a wrong constraint.

testSetBadConstraint() публичный Метод

Tests setting a wrong constraint.

testValidateConstraintsCorrectValues() публичный Метод

Tests validation of constraints.
public testValidateConstraintsCorrectValues ( $constraints )

testValidateConstraintsWrongValues() публичный Метод

Tests validation of constraints.
public testValidateConstraintsWrongValues ( $constraints, $expectedMessages, $values )

testValidateCorrectValues() публичный Метод

Tests validating a correct value.
public testValidateCorrectValues ( $value )

testValidateWrongValues() публичный Метод

Tests validating a wrong value.
public testValidateWrongValues ( $value, $messageSingular, $messagePlural, $values )