eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldValue\Converter\TimeTest::testToFieldValue PHP Method

testToFieldValue() public method

public testToFieldValue ( )
    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);
    }