Code Duplication    Length = 9-10 lines in 2 locations

tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.php 2 locations

@@ 95-103 (lines=9) @@
92
    /**
93
     * @group DDC-727
94
     */
95
    public function testAccessMetatadaForProxy()
96
    {
97
        $id = $this->createProduct();
98
99
        $entity = $this->em->getReference(ECommerceProduct::class , $id);
100
        $class = $this->em->getClassMetadata(get_class($entity));
101
102
        self::assertEquals(ECommerceProduct::class, $class->getClassName());
103
    }
104
105
    /**
106
     * @group DDC-1033
@@ 108-117 (lines=10) @@
105
    /**
106
     * @group DDC-1033
107
     */
108
    public function testReferenceFind()
109
    {
110
        $id = $this->createProduct();
111
112
        $entity = $this->em->getReference(ECommerceProduct::class , $id);
113
        $entity2 = $this->em->find(ECommerceProduct::class , $id);
114
115
        self::assertSame($entity, $entity2);
116
        self::assertEquals('Doctrine Cookbook', $entity2->getName());
117
    }
118
119
    /**
120
     * @group DDC-1033