public function testFindForIndex() { $this->setUpQueryBuilder($value = 'bar'); $pager = $this->repository->findForIndex(['foo' => $value], ['baz' => 'ASC']); $this->assertInstanceOf(Pagerfanta::class, $pager); $this->assertInstanceOf(DoctrineODMMongoDBAdapter::class, $pager->getAdapter()); }