$contexts =
[ 'languages:language_interface',
'entity_test_view_grants',
'theme',
'url.query_args',
'languages:language_content',
];
$this->
drupalGet('test_exposed_form_sort_items_per_page'
);
$this->
assertCacheContexts($contexts);
$this->
assertIds(range(1, 10, 1
));
$this->
drupalGet('test_exposed_form_sort_items_per_page',
['query' =>
['sort_order' => 'DESC'
]]);
$this->
assertCacheContexts($contexts);
$this->
assertIds(range(50, 41, 1
));
$this->
drupalGet('test_exposed_form_sort_items_per_page',
['query' =>
['sort_order' => 'DESC', 'items_per_page' => 25
]]);
$this->
assertCacheContexts($contexts);
$this->
assertIds(range(50, 26, 1
));
$this->
drupalGet('test_exposed_form_sort_items_per_page',
['query' =>
['sort_order' => 'DESC', 'items_per_page' => 25, 'offset' => 10
]]);
$this->
assertCacheContexts($contexts);