PHP Class eZ\Publish\Core\FieldType\Tests\StringLengthValidatorTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
getMaxStringLength ( ) : integer
getMinStringLength ( ) : integer

Method Details

getMaxStringLength() protected méthode

protected getMaxStringLength ( ) : integer
Résultat integer

getMinStringLength() protected méthode

protected getMinStringLength ( ) : integer
Résultat integer

providerForValidateConstraintsKO() public méthode

providerForValidateConstraintsOK() public méthode

providerForValidateKO() public méthode

providerForValidateOK() public méthode

testConstraintsInitializeGet() public méthode

Tests setting and getting constraints.

testConstraintsSetGet() public méthode

Tests setting and getting constraints.

testConstructor() public méthode

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

testGetBadConstraint() public méthode

Tests getting a wrong constraint.

testGetConstraintsSchema() public méthode

Test getting constraints schema.

testInitializeBadConstraint() public méthode

Tests initializing with a wrong constraint.

testSetBadConstraint() public méthode

Tests setting a wrong constraint.

testValidateConstraintsCorrectValues() public méthode

Tests validation of constraints.
public testValidateConstraintsCorrectValues ( $constraints )

testValidateConstraintsWrongValues() public méthode

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

testValidateCorrectValues() public méthode

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

testValidateWrongValues() public méthode

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