Code Duplication    Length = 8-8 lines in 3 locations

src/Graviton/GeneratorBundle/Tests/Definition/JsonDefinitionRelTest.php 3 locations

@@ 39-46 (lines=8) @@
36
     *
37
     * @return void
38
     */
39
    public function testGetType()
40
    {
41
        $type = __METHOD__;
42
        $definition = (new Schema\Field())->setType('class:'.$type);
43
44
        $field = new JsonDefinitionRel('name', $definition);
45
        $this->assertEquals($type, $field->getType());
46
    }
47
48
    /**
49
     * Test JsonDefinitionRel::getTypeDoctrine()
@@ 53-60 (lines=8) @@
50
     *
51
     * @return void
52
     */
53
    public function testGetTypeDoctrine()
54
    {
55
        $type = __METHOD__;
56
        $definition = (new Schema\Field())->setType('class:'.$type);
57
58
        $field = new JsonDefinitionRel('name', $definition);
59
        $this->assertEquals($type, $field->getTypeDoctrine());
60
    }
61
62
    /**
63
     * Test JsonDefinitionRel::getTypeSerializer()
@@ 67-74 (lines=8) @@
64
     *
65
     * @return void
66
     */
67
    public function testGetTypeSerializer()
68
    {
69
        $type = __METHOD__;
70
        $definition = (new Schema\Field())->setType('class:'.$type);
71
72
        $field = new JsonDefinitionRel('name', $definition);
73
        $this->assertEquals($type, $field->getTypeSerializer());
74
    }
75
76
    /**
77
     * Test JsonDefinitionRel::getDefAsArray()