diff --git a/core/modules/system/src/Tests/Pager/PagerTest.php b/core/modules/system/src/Tests/Pager/PagerTest.php index 71413f2..0a49a58 100644 --- a/core/modules/system/src/Tests/Pager/PagerTest.php +++ b/core/modules/system/src/Tests/Pager/PagerTest.php @@ -120,6 +120,13 @@ public function testMultiplePagers() { 'expected_page' => [0 => '3', 1 => '4', 4 => '5'], 'expected_query' => '?page=2,3,,,4', ], + // If negative values are passed as page numbers, the first page is + // returned. + [ + 'input_query' => '?page=-2,-6,,,5', + 'expected_page' => [0 => '1', 1 => '1', 4 => '6'], + 'expected_query' => '?page=0,0,,,5', + ], // If floats are passed as page numbers, only the integer part is // returned. [