eZ\Publish\Core\FieldType\Tests\ImageTest::provideInputForFromHash PHP Метод

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( '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
Результат array
    public function provideInputForFromHash()
    {
        return array(array(null, new ImageValue()), array(array('id' => $this->getImageInputPath(), 'fileName' => 'Sindelfingen-Squirrels.jpg', 'fileSize' => 23, 'alternativeText' => 'This is so Sindelfingen!', 'uri' => 'http://' . $this->getImageInputPath()), new ImageValue(array('id' => $this->getImageInputPath(), 'fileName' => 'Sindelfingen-Squirrels.jpg', 'fileSize' => 23, 'alternativeText' => 'This is so Sindelfingen!', 'uri' => 'http://' . $this->getImageInputPath()))), array(array('path' => $this->getImageInputPath(), 'fileName' => 'Sindelfingen-Squirrels.jpg', 'fileSize' => 23, 'alternativeText' => 'This is so Sindelfingen!', 'uri' => 'http://' . $this->getImageInputPath()), new ImageValue(array('inputUri' => $this->getImageInputPath(), 'fileName' => 'Sindelfingen-Squirrels.jpg', 'fileSize' => 23, 'alternativeText' => 'This is so Sindelfingen!', 'uri' => 'http://' . $this->getImageInputPath()))));
    }