/** * @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\XmlTextConverter::toFieldValue */ public function testToFieldValue() { $storageFieldValue = new StorageFieldValue(); $storageFieldValue->dataText = $this->xmlText; $fieldValue = new FieldValue(); $this->converter->toFieldValue($storageFieldValue, $fieldValue); self::assertSame($storageFieldValue->dataText, $fieldValue->data->saveXML()); }