Method | Description | |
---|---|---|
provideDataForGetName ( ) : array | Provides data for the getName() test. | |
provideInputForFromHash ( ) : array | Provide input to fromHash() method. | |
provideInputForToHash ( ) : array | Provide input for the toHash() method. | |
provideInvalidInputForAcceptValue ( ) : array | Data provider for invalid input to acceptValue(). | |
provideValidInputForAcceptValue ( ) : array | Data provider for valid input to acceptValue(). | |
testAcceptValueInvalidFormat ( ) | ||
testAcceptValueInvalidType ( ) | ||
testAcceptValueValidFormat ( ) | ||
testAddAuthor ( ) | ||
testBuildFieldValueWithParam ( ) | ||
testBuildFieldValueWithoutParam ( ) | ||
testFieldValueToString ( ) | ||
testRemoveAuthors ( ) | ||
testSettingsSchema ( ) | ||
testValidatorConfigurationSchema ( ) |
Method | Description | |
---|---|---|
createFieldTypeUnderTest ( ) : eZ\Publish\SPI\FieldType\FieldType | Returns the field type under test. | |
getEmptyValueExpectation ( ) : |
Returns the empty value expected from the field type. | |
getSettingsSchemaExpectation ( ) : array | Returns the settings schema expected from the field type. | |
getValidatorConfigurationSchemaExpectation ( ) : array | Returns the validator configuration schema expected from the field type. | |
provideFieldTypeIdentifier ( ) : string | Returns the identifier of the field type under test. | |
setUp ( ) | ||
tearDown ( ) |
protected createFieldTypeUnderTest ( ) : eZ\Publish\SPI\FieldType\FieldType | ||
return | eZ\Publish\SPI\FieldType\FieldType |
protected getEmptyValueExpectation ( ) : |
||
return |
protected getSettingsSchemaExpectation ( ) : array | ||
return | array |
protected getValidatorConfigurationSchemaExpectation ( ) : array | ||
return | array |
public provideDataForGetName ( ) : array | ||
return | array |
protected provideFieldTypeIdentifier ( ) : string | ||
return | string |
return array(
array(
null,
null
),
array(
array(
'path' => 'some/file/here',
'fileName' => 'sindelfingen.jpg',
'fileSize' => 2342,
'downloadCount' => 0,
'mimeType' => 'image/jpeg',
),
new BinaryFileValue( array(
'path' => 'some/file/here',
'fileName' => 'sindelfingen.jpg',
'fileSize' => 2342,
'downloadCount' => 0,
'mimeType' => 'image/jpeg',
) )
),
...
);
public provideInputForFromHash ( ) : array | ||
return | array |
return array(
array(
null,
null
),
array(
new BinaryFileValue( array(
'path' => 'some/file/here',
'fileName' => 'sindelfingen.jpg',
'fileSize' => 2342,
'downloadCount' => 0,
'mimeType' => 'image/jpeg',
) ),
array(
'path' => 'some/file/here',
'fileName' => 'sindelfingen.jpg',
'fileSize' => 2342,
'downloadCount' => 0,
'mimeType' => 'image/jpeg',
)
),
...
);
public provideInputForToHash ( ) : array | ||
return | array |
return array(
array(
new \stdClass(),
'eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException',
),
array(
array(),
'eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException',
),
...
);
public provideInvalidInputForAcceptValue ( ) : array | ||
return | array |
return array(
array(
null,
null
),
array(
__FILE__,
new BinaryFileValue( array(
'path' => __FILE__,
'fileName' => basename( __FILE__ ),
'fileSize' => filesize( __FILE__ ),
'downloadCount' => 0,
'mimeType' => 'text/plain',
) )
),
...
);
public provideValidInputForAcceptValue ( ) : array | ||
return | array |