eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldValue\Converter\TextBlockTest::testToStorageFieldDefinition PHP 메소드

testToStorageFieldDefinition() 공개 메소드

    public function testToStorageFieldDefinition()
    {
        $storageFieldDef = new StorageFieldDefinition();
        $fieldTypeConstraints = new FieldTypeConstraints();
        $fieldTypeConstraints->fieldSettings = new FieldSettings(array('textRows' => 15));
        $fieldDef = new PersistenceFieldDefinition(array('fieldTypeConstraints' => $fieldTypeConstraints, 'defaultValue' => new TextBlockValue()));
        $this->converter->toStorageFieldDefinition($fieldDef, $storageFieldDef);
        self::assertSame(15, $storageFieldDef->dataInt1);
    }