Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 182-192 (lines=11) @@
179
        self::assertEquals('freak', $user->status);
180
    }
181
182
    public function testFindByField()
183
    {
184
        $user1Id = $this->loadFixture();
185
        $repos = $this->em->getRepository(CmsUser::class);
186
187
        $users = $repos->findBy(['status' => 'dev']);
188
        self::assertCount(2, $users);
189
        self::assertInstanceOf(CmsUser::class,$users[0]);
190
        self::assertEquals('Guilherme', $users[0]->name);
191
        self::assertEquals('dev', $users[0]->status);
192
    }
193
194
    public function testFindByAssociationWithIntegerAsParameter()
195
    {
@@ 242-252 (lines=11) @@
239
        self::assertInstanceOf(CmsAddress::class,$addresses[0]);
240
    }
241
242
    public function testFindFieldByMagicCall()
243
    {
244
        $user1Id = $this->loadFixture();
245
        $repos = $this->em->getRepository(CmsUser::class);
246
247
        $users = $repos->findByStatus('dev');
248
        self::assertCount(2, $users);
249
        self::assertInstanceOf(CmsUser::class,$users[0]);
250
        self::assertEquals('Guilherme', $users[0]->name);
251
        self::assertEquals('dev', $users[0]->status);
252
    }
253
254
    public function testFindAll()
255
    {