@@ 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 | { |
@@ 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 | { |