diff -r 4a3899b6a7ed -r 766af1228b05 server/src/tests/Controllers/DocumentListControllerTest.php --- 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');