/** * @group fieldType * @group ezboolean * @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\CheckboxConverter::toFieldDefinition */ public function testToFieldDefinition() { $defaultBool = true; $fieldDef = new PersistenceFieldDefinition(); $storageDef = new StorageFieldDefinition(array('dataInt3' => 1)); $this->converter->toFieldDefinition($storageDef, $fieldDef); self::assertSame($defaultBool, $fieldDef->defaultValue->data); self::assertNull($fieldDef->fieldTypeConstraints->fieldSettings); }