eZ\Publish\Core\FieldType\Tests\AuthorTest::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 AuthorValue(array()), array()), array(new AuthorValue(array(new Author(array('id' => 1, 'name' => 'Joe Sindelfingen', 'email' => '[email protected]')))), array(array('id' => 1, 'name' => 'Joe Sindelfingen', 'email' => '[email protected]'))), array(new AuthorValue(array(new Author(array('id' => 1, 'name' => 'Joe Sindelfingen', 'email' => '[email protected]')), new Author(array('id' => 2, 'name' => 'Joe Bielefeld', 'email' => '[email protected]')))), array(array('id' => 1, 'name' => 'Joe Sindelfingen', 'email' => '[email protected]'), array('id' => 2, 'name' => 'Joe Bielefeld', 'email' => '[email protected]'))));
    }