eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldValue\Converter\DateTest::testToStorageFieldDefinitionDefaultEmpty PHP Method

testToStorageFieldDefinitionDefaultEmpty() public method

    public function testToStorageFieldDefinitionDefaultEmpty()
    {
        $storageFieldDef = new StorageFieldDefinition();
        $fieldTypeConstraints = new FieldTypeConstraints();
        $fieldTypeConstraints->fieldSettings = new FieldSettings(array('defaultType' => DateType::DEFAULT_EMPTY));
        $fieldDef = new PersistenceFieldDefinition(array('fieldTypeConstraints' => $fieldTypeConstraints));
        $this->converter->toStorageFieldDefinition($fieldDef, $storageFieldDef);
        self::assertSame(DateType::DEFAULT_EMPTY, $storageFieldDef->dataInt1);
    }