Code Duplication    Length = 9-10 lines in 2 locations

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

@@ 179-188 (lines=10) @@
176
        return $address;
177
    }
178
179
    public function testBasicFind()
180
    {
181
        $user1Id = $this->loadFixture();
182
        $repos = $this->em->getRepository(CmsUser::class);
183
184
        $user = $repos->find($user1Id);
185
        self::assertInstanceOf(CmsUser::class,$user);
186
        self::assertEquals('Roman', $user->name);
187
        self::assertEquals('freak', $user->status);
188
    }
189
190
    public function testFindByField()
191
    {
@@ 423-431 (lines=9) @@
420
    /**
421
     * @group DDC-817
422
     */
423
    public function testFindOneByAssociationKey()
424
    {
425
        list($userId, $addressId) = $this->loadAssociatedFixture();
426
        $repos = $this->em->getRepository(CmsAddress::class);
427
        $address = $repos->findOneBy(['user' => $userId]);
428
429
        self::assertInstanceOf(CmsAddress::class, $address);
430
        self::assertEquals($addressId, $address->id);
431
    }
432
433
    /**
434
     * @group DDC-1241