/**
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TimeConverter::toFieldValue
*/
public function testToFieldValue()
{
$storageFieldValue = new StorageFieldValue();
$storageFieldValue->dataInt = $this->time;
$storageFieldValue->sortKeyString = "";
$storageFieldValue->sortKeyInt = $this->time;
$fieldValue = new FieldValue();
$this->converter->toFieldValue($storageFieldValue, $fieldValue);
self::assertSame($this->time, $fieldValue->data);
self::assertSame($storageFieldValue->dataInt, $fieldValue->data);
self::assertSame($storageFieldValue->sortKeyInt, $fieldValue->sortKey);
}