server/src/tests/Controllers/DocumentListControllerTest.php
changeset 339 766af1228b05
parent 326 226d5b17a119
child 537 d2e6ee099125
--- a/server/src/tests/Controllers/DocumentListControllerTest.php	Sun Oct 16 22:23:31 2016 +0530
+++ b/server/src/tests/Controllers/DocumentListControllerTest.php	Sun Oct 16 23:19:57 2016 +0530
@@ -104,12 +104,12 @@
 
     public function testIndex() {
         $this->documentRepository
-            ->shouldReceive('paginateAll')
+            ->shouldReceive('paginate')
             ->once()
             ->andReturn(
                 new LengthAwarePaginator([], 0, 10, 1, [
                     'path' => '',
-                    'pageName' => 'page',
+                    'pageName' => config('corpusparole.pagination_page_param'),
                 ]));
 
         $response = $this->call('GET', '/bo/docs');