/**
* Tests the query() method.
*
* @see \Drupal\views\Plugin\views\pager\SqlBase::query()
*/
public function testQuery() { $request =
new Request([ 'items_per_page' => 'All',
]);
$this->view->
expects($this->
any()) ->
method('getRequest'
) ->
will($this->
returnValue($request));
$options =
[];
$this->pager->
init($this->view,
$this->display,
$options);
$this->pager->
query();
$this->
assertSame(10,
$this->pager->options
['items_per_page'
]);
$options =
[ 'expose' =>
[ 'items_per_page' => TRUE,
'items_per_page_options_all' => TRUE,
],
];