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

Inheritance: extends FieldTypeTest
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
provideInvalidInputForAcceptValue ( )
provideInvalidValidatorConfiguration ( ) : array Provide data sets with validator configurations which are considered invalid by the {@link validateValidatorConfiguration()} method. The method must return a non-empty array of validation errors when receiving one of the provided values.
provideValidValidatorConfiguration ( ) : array Provide data sets with validator configurations which are considered valid by the {@link validateValidatorConfiguration()} method.

Protected Methods

Method Description
getSettingsSchemaExpectation ( )
getValidatorConfigurationSchemaExpectation ( )

Method Details

getSettingsSchemaExpectation() protected method

getValidatorConfigurationSchemaExpectation() protected method

provideInvalidInputForAcceptValue() public method

provideInvalidValidatorConfiguration() public method

Returns an array of data provider sets with a single argument: A valid set of validator configurations. For example: return array( array( array( 'NonExistentValidator' => array(), ), ), array( array( Typos 'InTEgervALUeVALIdator' => array( 'minIntegerValue' => 0, 'maxIntegerValue' => 23, ) ) ), array( array( 'IntegerValueValidator' => array( Incorrect value types 'minIntegerValue' => true, 'maxIntegerValue' => false, ) ) ), ... );

provideValidValidatorConfiguration() public method

Returns an array of data provider sets with a single argument: A valid set of validator configurations. For example: return array( array( array(), ), array( array( 'IntegerValueValidator' => array( 'minIntegerValue' => 0, 'maxIntegerValue' => 23, ) ) ), ... );