Converts data from $value to $fieldValue.
public toFieldValue ( |
||
$value | ||
$fieldValue | eZ\Publish\SPI\Persistence\Content\FieldValue |
/** * @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); }