|
@ -44,7 +44,7 @@ class PagerActionTest extends Action_TestCase |
|
|
$this->assertSame(0, $action->getOffset()); |
|
|
$this->assertSame(0, $action->getOffset()); |
|
|
$_GET['p'] = 'last'; |
|
|
$_GET['p'] = 'last'; |
|
|
$action->setCount(50); |
|
|
$action->setCount(50); |
|
|
$this->assertSame(3, $action->page); |
|
|
|
|
|
|
|
|
$this->assertSame(3.0, $action->page); |
|
|
$this->assertSame(40, $action->getOffset()); |
|
|
$this->assertSame(40, $action->getOffset()); |
|
|
$_GET['p'] = 2; |
|
|
$_GET['p'] = 2; |
|
|
$action->setCount(50); |
|
|
$action->setCount(50); |
|
|