eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldValue\Converter\UrlTest::testToStorageValue PHP Method

testToStorageValue() public method

public testToStorageValue ( )
    public function testToStorageValue()
    {
        $value = new FieldValue();
        $text = 'eZ Systems';
        $value->data = array('text' => $text);
        $value->externalData = 'http://ez.no/';
        $value->sortKey = false;
        $storageFieldValue = new StorageFieldValue();
        $this->converter->toStorageValue($value, $storageFieldValue);
        self::assertSame($text, $storageFieldValue->dataText);
    }