Method | Description | |
---|---|---|
provideDataForGetName ( ) | ||
provideInValidFieldSettings ( ) : array | Provide data sets with field settings which are considered invalid by the {@link validateFieldSettings()} method. The method must return a non-empty array of validation error when receiving such field settings. | |
provideInputForFromHash ( ) : array | Provide input to fromHash() method. | |
provideInputForToHash ( ) : array | Provide input for the toHash() method. | |
provideInvalidInputForAcceptValue ( ) | ||
provideValidFieldSettings ( ) : array | Provide data sets with field settings which are considered valid by the {@link validateFieldSettings()} method. | |
provideValidInputForAcceptValue ( ) |
Method | Description | |
---|---|---|
createFieldTypeUnderTest ( ) : FieldType | Returns the field type under test. | |
getEmptyValueExpectation ( ) | ||
getSettingsSchemaExpectation ( ) | ||
provideFieldTypeIdentifier ( ) |
protected createFieldTypeUnderTest ( ) : FieldType | ||
return | FieldType |
return array(
array(
true,
),
array(
array( 'nonExistentKey' => 2 )
),
...
);
public provideInValidFieldSettings ( ) : array | ||
return | array |
return array(
array(
null,
null
),
array(
array(
'id' => 'some/file/here',
'fileName' => 'sindelfingen.jpg',
'fileSize' => 2342,
'downloadCount' => 0,
'mimeType' => 'image/jpeg',
),
new BinaryFileValue(
array(
'id' => '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(
'id' => 'some/file/here',
'fileName' => 'sindelfingen.jpg',
'fileSize' => 2342,
'downloadCount' => 0,
'mimeType' => 'image/jpeg',
)
),
array(
'id' => 'some/file/here',
'fileName' => 'sindelfingen.jpg',
'fileSize' => 2342,
'downloadCount' => 0,
'mimeType' => 'image/jpeg',
)
),
...
);
public provideInputForToHash ( ) : array | ||
return | array |
return array(
array(
array(),
),
array(
array( 'rows' => 2 )
),
...
);
public provideValidFieldSettings ( ) : array | ||
return | array |