/** * Return current page from request * * @return int */ public function getCurrentPage() { return $this->_toolbarModel->getCurrentPage(); }
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()); }