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

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

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

Метод Описание
provideDataForGetName ( )
provideInputForFromHash ( ) : array Provide input to fromHash() method.
provideInputForToHash ( ) : array Provide input for the toHash() method.
provideInvalidInputForAcceptValue ( )
provideValidInputForAcceptValue ( )

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

Метод Описание
createFieldTypeUnderTest ( ) : FieldType Returns the field type under test.
getEmptyValueExpectation ( )
provideFieldTypeIdentifier ( )

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

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

This method is used by all test cases to retrieve the field type under test. Just create the FieldType instance using mocks from the provided get*Mock() methods and/or custom get*Mock() implementations. You MUST NOT take care for test case wide caching of the field type, just return a new instance from this method!
protected createFieldTypeUnderTest ( ) : FieldType
Результат FieldType

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

protected getEmptyValueExpectation ( )

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

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

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

Returns an array of data provider sets with 2 arguments: 1. The valid input to fromHash(), 2. The expected return value from fromHash(). For example: 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
Результат array

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

Returns an array of data provider sets with 2 arguments: 1. The valid input to toHash(), 2. The expected return value from toHash(). For example: 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
Результат array

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

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