$this->pager->
setCurrentPage(-2
);
$this->
assertEquals(0,
$this->pager->
getCurrentPage());
} /**
* Tests the getTotalItems() method.
*
* @see \Drupal\views\Plugin\views\pager\PagerPluginBase::getTotalItems()
*/
public function testGetTotalItems() { // Should return 0 by default.
$this->
assertEquals(0,
$this->pager->
getTotalItems());
$this->pager->total_items = 10;
$this->
assertEquals(10,
$this->pager->
getTotalItems());
} /**
* Tests the getPagerId() method.
*
* @see \Drupal\views\Plugin\views\pager\PagerPluginBase::getPagerId()
*/
public function testGetPagerId() {