/**
* @group fieldType
* @group ezboolean
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\CheckboxConverter::toStorageFieldDefinition
*/
public function testToStorageFieldDefinition()
{
$defaultBool = false;
$storageFieldDef = new StorageFieldDefinition();
$defaultValue = new FieldValue();
$defaultValue->data = $defaultBool;
$fieldDef = new PersistenceFieldDefinition(array('defaultValue' => $defaultValue));
$this->converter->toStorageFieldDefinition($fieldDef, $storageFieldDef);
self::assertSame((int) $fieldDef->defaultValue->data, $storageFieldDef->dataInt3);
}