server/src/tests/Controllers/DocumentListControllerTest.php
changeset 326 226d5b17a119
parent 113 faff38055a07
child 537 d2e6ee099125
--- a/server/src/tests/Controllers/DocumentListControllerTest.php	Sun Oct 09 11:44:18 2016 +0200
+++ b/server/src/tests/Controllers/DocumentListControllerTest.php	Tue Oct 11 02:49:59 2016 +0200
@@ -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');