/**
* @group fieldType
* @group dateTime
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTimeConverter::toStorageFieldDefinition
*/
public function testToStorageFieldDefinitionCurrentDate()
{
$storageFieldDef = new StorageFieldDefinition();
$fieldTypeConstraints = new FieldTypeConstraints();
$fieldTypeConstraints->fieldSettings = new FieldSettings(array('useSeconds' => true, 'defaultType' => DateAndTimeType::DEFAULT_CURRENT_DATE, 'dateInterval' => null));
$fieldDef = new PersistenceFieldDefinition(array('fieldTypeConstraints' => $fieldTypeConstraints));
$this->converter->toStorageFieldDefinition($fieldDef, $storageFieldDef);
self::assertSame(DateAndTimeType::DEFAULT_CURRENT_DATE, $storageFieldDef->dataInt1);
self::assertSame(1, $storageFieldDef->dataInt2);
self::assertNull($storageFieldDef->dataText5);
}