eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldValue\Converter\CheckboxTest::testToStorageFieldDefinition PHP Method

testToStorageFieldDefinition() public method

    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);
    }