eZ\Publish\Core\FieldType\Tests\MediaTest::provideInputForToHash PHP Метод

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
    public function provideInputForToHash()
    {
        return array(array(new MediaValue(), null), array(new MediaValue(array('inputUri' => __FILE__, 'fileName' => basename(__FILE__), 'fileSize' => filesize(__FILE__), 'mimeType' => 'text/plain', 'hasController' => false, 'autoplay' => false, 'loop' => true, 'width' => 0, 'height' => 0, 'uri' => 'http://' . basename(__FILE__))), array('id' => null, 'inputUri' => __FILE__, 'path' => __FILE__, 'fileName' => basename(__FILE__), 'fileSize' => filesize(__FILE__), 'mimeType' => 'text/plain', 'hasController' => false, 'autoplay' => false, 'loop' => true, 'width' => 0, 'height' => 0, 'uri' => 'http://' . basename(__FILE__))), array(new MediaValue(array('path' => __FILE__, 'fileName' => basename(__FILE__), 'fileSize' => filesize(__FILE__), 'mimeType' => 'text/plain', 'hasController' => false, 'autoplay' => false, 'loop' => true, 'width' => 0, 'height' => 0, 'uri' => 'http://' . basename(__FILE__))), array('id' => null, 'inputUri' => __FILE__, 'path' => __FILE__, 'fileName' => basename(__FILE__), 'fileSize' => filesize(__FILE__), 'mimeType' => 'text/plain', 'hasController' => false, 'autoplay' => false, 'loop' => true, 'width' => 0, 'height' => 0, 'uri' => 'http://' . basename(__FILE__))), array(new MediaValue(array('id' => __FILE__, 'fileName' => basename(__FILE__), 'fileSize' => filesize(__FILE__), 'mimeType' => 'text/plain', 'hasController' => false, 'autoplay' => false, 'loop' => true, 'width' => 0, 'height' => 0, 'uri' => 'http://' . basename(__FILE__))), array('id' => null, 'inputUri' => __FILE__, 'path' => __FILE__, 'fileName' => basename(__FILE__), 'fileSize' => filesize(__FILE__), 'mimeType' => 'text/plain', 'hasController' => false, 'autoplay' => false, 'loop' => true, 'width' => 0, 'height' => 0, 'uri' => 'http://' . basename(__FILE__))), array(new MediaValue(array('id' => 'application/asdf1234.pdf', 'fileName' => 'asdf1234.pdf', 'fileSize' => 12345, 'mimeType' => 'text/plain', 'hasController' => false, 'autoplay' => false, 'loop' => true, 'width' => 0, 'height' => 0, 'uri' => 'http://asdf1234.pdf')), array('id' => 'application/asdf1234.pdf', 'inputUri' => null, 'path' => null, 'fileName' => 'asdf1234.pdf', 'fileSize' => 12345, 'mimeType' => 'text/plain', 'hasController' => false, 'autoplay' => false, 'loop' => true, 'width' => 0, 'height' => 0, 'uri' => 'http://asdf1234.pdf')));
    }