Code Duplication    Length = 9-10 lines in 2 locations

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

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