/**
  * @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\XmlTextConverter::toStorageValue
  */
 public function testToStorageValue()
 {
     $value = new FieldValue();
     $value->data = $this->xmlText;
     $storageFieldValue = new StorageFieldValue();
     $this->converter->toStorageValue($value, $storageFieldValue);
     self::assertSame($value->data, $storageFieldValue->dataText);
 }
示例#2
0
 /**
  * @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\XmlTextConverter::toStorageValue
  */
 public function testToStorageValue()
 {
     $value = new FieldValue();
     $value->data = new DOMDocument();
     $value->data->loadXML($this->xmlText);
     $storageFieldValue = new StorageFieldValue();
     $this->converter->toStorageValue($value, $storageFieldValue);
     self::assertSame($value->data->saveXML(), $storageFieldValue->dataText);
 }