public function testFindPage() { $request = Request::
create('http://example.com', 'GET',
['page' => '0,10'
]);
/** @var \Symfony\Component\HttpFoundation\RequestStack $request_stack */
$request_stack =
$this->container->
get('request_stack'
);
$request_stack->
push($request);
$pager_params =
$this->container->
get('pager.parameters'
);
$this->
assertEquals(10,
$pager_params->
findPage(1
));
} /**
* @covers ::getQueryParameters
*/
public function testGetQueryParameters() { $test_parameters =
[ 'other' => 'arbitrary',
];
$request = Request::
create('http://example.com', 'GET',
array_merge(['page' => '0,10'
],
$test_parameters));