toFieldValue() public method

Converts data from $value to $fieldValue.
public toFieldValue ( StorageFieldValue $value, eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue )
$value eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue
$fieldValue eZ\Publish\SPI\Persistence\Content\FieldValue
Example #1
0
 /**
  * @group fieldType
  * @group country
  * @dataProvider providerForTestToFieldValue
  * @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\CountryConverter::toFieldValue
  */
 public function testToFieldValue($dataText, $sortKeyString, $data)
 {
     $storageFieldValue = new StorageFieldValue();
     $storageFieldValue->dataText = $dataText;
     $storageFieldValue->sortKeyString = $sortKeyString;
     $fieldValue = new FieldValue();
     $this->converter->toFieldValue($storageFieldValue, $fieldValue);
     self::assertSame($data, $fieldValue->data);
 }