eZ\Publish\Core\FieldType\Tests\ImageTest::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( '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
Результат array
    public function provideInputForToHash()
    {
        return array(array(new ImageValue(), null), array(new ImageValue(array('id' => $this->getImageInputPath(), 'fileName' => 'Sindelfingen-Squirrels.jpg', 'fileSize' => 23, 'alternativeText' => 'This is so Sindelfingen!', 'imageId' => '123-12345', 'uri' => 'http://' . $this->getImageInputPath(), 'width' => 123, 'height' => 456)), array('id' => $this->getImageInputPath(), 'path' => $this->getImageInputPath(), 'fileName' => 'Sindelfingen-Squirrels.jpg', 'fileSize' => 23, 'alternativeText' => 'This is so Sindelfingen!', 'imageId' => '123-12345', 'uri' => 'http://' . $this->getImageInputPath(), 'inputUri' => null, 'width' => 123, 'height' => 456)), array(new ImageValue(array('path' => $this->getImageInputPath(), 'fileName' => 'Sindelfingen-Squirrels.jpg', 'fileSize' => 23, 'alternativeText' => 'This is so Sindelfingen!', 'imageId' => '123-12345', 'uri' => 'http://' . $this->getImageInputPath())), array('id' => null, 'path' => $this->getImageInputPath(), 'fileName' => 'Sindelfingen-Squirrels.jpg', 'fileSize' => 23, 'alternativeText' => 'This is so Sindelfingen!', 'imageId' => '123-12345', 'uri' => 'http://' . $this->getImageInputPath(), 'inputUri' => $this->getImageInputPath(), 'width' => null, 'height' => null)));
    }