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

testToFieldValue() public method

Test converting XML to Parts\Page.
public testToFieldValue ( )
    public function testToFieldValue()
    {
        $storageFieldValue = new StorageFieldValue(array('dataText' => self::PAGE_XML_REFERENCE));
        $fieldValue = new FieldValue();
        $this->converter->toFieldValue($storageFieldValue, $fieldValue);
        $this->assertInstanceOf('eZ\\Publish\\Core\\FieldType\\Page\\Parts\\Page', $fieldValue->data);
        $this->assertEquals($this->pageReference, $fieldValue->data);
    }