mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -20,6 +20,7 @@ use function count;
|
||||
* Test the paginator class.
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
final class PaginatorTest extends KernelTestCase
|
||||
@@ -108,10 +109,11 @@ final class PaginatorTest extends KernelTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $totalItems
|
||||
* @param int $itemPerPage
|
||||
* @param int $currentPage
|
||||
* @param int $totalItems
|
||||
* @param int $itemPerPage
|
||||
* @param int $currentPage
|
||||
* @param bool $expectedHasNextPage
|
||||
*
|
||||
* @dataProvider generateHasNextPage
|
||||
*/
|
||||
public function testHasNextPage(
|
||||
@@ -128,10 +130,11 @@ final class PaginatorTest extends KernelTestCase
|
||||
/**
|
||||
* test the HasPage function.
|
||||
*
|
||||
* @param int $totalItems
|
||||
* @param int $itemPerpage
|
||||
* @param int $pageNumber
|
||||
* @param int $totalItems
|
||||
* @param int $itemPerpage
|
||||
* @param int $pageNumber
|
||||
* @param bool $expectedHasPage
|
||||
*
|
||||
* @dataProvider generateHasPage
|
||||
*/
|
||||
public function testHasPage(
|
||||
@@ -149,6 +152,7 @@ final class PaginatorTest extends KernelTestCase
|
||||
* @param int $totalItems
|
||||
* @param int $itemPerPage
|
||||
* @param int $currentPage
|
||||
*
|
||||
* @dataProvider generateHasPreviousPage
|
||||
*/
|
||||
public function testHasPreviousPage(
|
||||
@@ -169,6 +173,7 @@ final class PaginatorTest extends KernelTestCase
|
||||
* @param int $totalItems
|
||||
* @param int $itemPerPage
|
||||
* @param int $expectedPageNumber
|
||||
*
|
||||
* @dataProvider generatePageNumber
|
||||
*/
|
||||
public function testPageNumber($totalItems, $itemPerPage, $expectedPageNumber)
|
||||
@@ -176,7 +181,7 @@ final class PaginatorTest extends KernelTestCase
|
||||
$paginator = $this->generatePaginator($totalItems, $itemPerPage);
|
||||
|
||||
$this->assertEquals($expectedPageNumber, $paginator->countPages());
|
||||
$this->assertEquals($expectedPageNumber, count($paginator));
|
||||
$this->assertEquals($expectedPageNumber, \count($paginator));
|
||||
}
|
||||
|
||||
public function testPagesGenerator()
|
||||
@@ -212,7 +217,7 @@ final class PaginatorTest extends KernelTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $itemPerPage
|
||||
* @param int $itemPerPage
|
||||
* @param string $route
|
||||
*
|
||||
* @return Paginator
|
||||
|
Reference in New Issue
Block a user