Code Duplication    Length = 9-9 lines in 2 locations

src/Component/Resource/Tests/Repository/Doctrine/MongoDB/RepositoryTest.php 1 location

@@ 199-207 (lines=9) @@
196
        $this->assertSame($result, $this->repository->findBy(['foo' => $value], ['baz' => 'ASC'], $limit, $offset));
197
    }
198
199
    public function testFindForIndex()
200
    {
201
        $this->setUpQueryBuilder($value = 'bar');
202
203
        $pager = $this->repository->findForIndex(['foo' => $value], ['baz' => 'ASC']);
204
205
        $this->assertInstanceOf(Pagerfanta::class, $pager);
206
        $this->assertInstanceOf(DoctrineODMMongoDBAdapter::class, $pager->getAdapter());
207
    }
208
209
    public function testFindForShow()
210
    {

src/Component/Resource/Tests/Repository/Doctrine/ORM/RepositoryTest.php 1 location

@@ 206-214 (lines=9) @@
203
        $this->assertSame($result, $this->repository->findBy(['foo' => $value], ['baz' => 'ASC'], $limit, $offset));
204
    }
205
206
    public function testFindForIndex()
207
    {
208
        $this->setUpQueryBuilder($value = 'bar');
209
210
        $pager = $this->repository->findForIndex(['foo' => $value], ['baz' => 'ASC']);
211
212
        $this->assertInstanceOf(Pagerfanta::class, $pager);
213
        $this->assertInstanceOf(DoctrineORMAdapter::class, $pager->getAdapter());
214
    }
215
216
    public function testFindForShow()
217
    {