public toFieldValue ( |
||
$value | ||
$fieldValue | eZ\Publish\SPI\Persistence\Content\FieldValue |
public function toFieldValue(StorageFieldValue $value, FieldValue $fieldValue)
{
$fieldValue->data = $value->dataText ?: Value::EMPTY_VALUE;
}
/** * @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RichTextConverter::toFieldValue */ public function testToFieldValue() { $storageFieldValue = new StorageFieldValue(); $storageFieldValue->dataText = $this->docbookString; $fieldValue = new FieldValue(); $this->converter->toFieldValue($storageFieldValue, $fieldValue); self::assertSame($this->docbookString, $fieldValue->data); }