public toFieldValue ( |
||
$value | ||
$fieldValue | eZ\Publish\SPI\Persistence\Content\FieldValue |
public function toFieldValue(StorageFieldValue $value, FieldValue $fieldValue)
{
$fieldValue->data = (bool) $value->dataInt;
}
/** * @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); }