Code Duplication    Length = 11-11 lines in 3 locations

eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php 3 locations

@@ 447-457 (lines=11) @@
444
        return $contentType->fieldDefinitions[1];
445
    }
446
447
    public function testSettingsSchema()
448
    {
449
        $repository = $this->getRepository();
450
        $fieldTypeService = $repository->getFieldTypeService();
451
        $fieldType = $fieldTypeService->getFieldType($this->getTypeName());
452
453
        $this->assertEquals(
454
            $this->getSettingsSchema(),
455
            $fieldType->getSettingsSchema()
456
        );
457
    }
458
459
    /**
460
     * @depends testLoadContentTypeFieldType
@@ 1052-1062 (lines=11) @@
1049
    /**
1050
     * @dataProvider provideToHashData
1051
     */
1052
    public function testToHash($value, $expectedHash)
1053
    {
1054
        $repository = $this->getRepository();
1055
        $fieldTypeService = $repository->getFieldTypeService();
1056
        $fieldType = $fieldTypeService->getFieldType($this->getTypeName());
1057
1058
        $this->assertEquals(
1059
            $expectedHash,
1060
            $fieldType->toHash($value)
1061
        );
1062
    }
1063
1064
    /**
1065
     * @depends testCreateContent
@@ 1070-1080 (lines=11) @@
1067
     * @todo: Requires correct registered FieldTypeService, needs to be
1068
     *        maintained!
1069
     */
1070
    public function testFromHash($hash, $expectedValue)
1071
    {
1072
        $repository = $this->getRepository();
1073
        $fieldTypeService = $repository->getFieldTypeService();
1074
        $fieldType = $fieldTypeService->getFieldType($this->getTypeName());
1075
1076
        $this->assertEquals(
1077
            $expectedValue,
1078
            $fieldType->fromHash($hash)
1079
        );
1080
    }
1081
1082
    /**
1083
     * Test that exceeding default version archive limit has no effect on a published content.