mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
fix pagination problems
This commit is contained in:
@@ -204,6 +204,14 @@ final class PaginatorTest extends KernelTestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function testPagesWithoutResult()
|
||||
{
|
||||
$paginator = $this->generatePaginator(0, 10);
|
||||
|
||||
$this->assertEquals(0, $paginator->getCurrentPageFirstItemNumber());
|
||||
$this->assertEquals(10, $paginator->getItemsPerPage());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $itemPerPage
|
||||
* @param string $route
|
||||
|
Reference in New Issue
Block a user