equal
deleted
inserted
replaced
342 |
342 |
343 $this->initClient($responses); |
343 $this->initClient($responses); |
344 |
344 |
345 $handleClient = new HandleClient($this->certTmpPath, null, "300:11280.101/CORPUS_ADMIN", "172.16.1.6", 8000, $this->httpClient); |
345 $handleClient = new HandleClient($this->certTmpPath, null, "300:11280.101/CORPUS_ADMIN", "172.16.1.6", 8000, $this->httpClient); |
346 |
346 |
347 $pagination = $handleClient->paginateAll('11280.101', 5, 'page', 2); |
347 $pagination = $handleClient->paginateAll('11280.101', 5, config('corpusparole.pagination_page_param'), 2); |
348 |
348 |
349 $this->assertNotNull($pagination); |
349 $this->assertNotNull($pagination); |
350 |
350 |
351 $this->assertInstanceOf("Illuminate\Pagination\LengthAwarePaginator", $pagination, "Must be a LengthAwarePaginator"); |
351 $this->assertInstanceOf("Illuminate\Pagination\LengthAwarePaginator", $pagination, "Must be a LengthAwarePaginator"); |
352 |
352 |
386 |
386 |
387 $this->initClient($responses); |
387 $this->initClient($responses); |
388 |
388 |
389 $handleClient = new HandleClient($this->certTmpPath, null, "300:11280.101/CORPUS_ADMIN", "172.16.1.6", 8000, $this->httpClient); |
389 $handleClient = new HandleClient($this->certTmpPath, null, "300:11280.101/CORPUS_ADMIN", "172.16.1.6", 8000, $this->httpClient); |
390 |
390 |
391 $pagination = $handleClient->paginateAll('11280.101', 5, 'page', 3); |
391 $pagination = $handleClient->paginateAll('11280.101', 5, config('corpusparole.pagination_page_param'), 3); |
392 |
392 |
393 $this->assertNotNull($pagination); |
393 $this->assertNotNull($pagination); |
394 |
394 |
395 $this->assertInstanceOf("Illuminate\Pagination\LengthAwarePaginator", $pagination, "Must be a LengthAwarePaginator"); |
395 $this->assertInstanceOf("Illuminate\Pagination\LengthAwarePaginator", $pagination, "Must be a LengthAwarePaginator"); |
396 |
396 |