Пример #1
0
 /**
  * Return current page from request
  *
  * @return int
  */
 public function getCurrentPage()
 {
     return $this->_toolbarModel->getCurrentPage();
 }
Пример #2
0
 public function testGetCurrentPageNoParam()
 {
     $this->requestMock->expects($this->once())->method('getParam')->with(Toolbar::PAGE_PARM_NAME)->will($this->returnValue(false));
     $this->assertEquals(1, $this->toolbarModel->getCurrentPage());
 }