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
Beispiel #1
0
 /**
  * @group fieldType
  * @group rating
  * @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RatingConverter::toFieldValue
  */
 public function testToFieldValueDisabled()
 {
     $storageFieldValue = new StorageFieldValue();
     $storageFieldValue->dataInt = 1;
     $fieldValue = new FieldValue();
     $this->converter->toFieldValue($storageFieldValue, $fieldValue);
     self::assertSame(true, $fieldValue->data);
 }