Increasing code coverage.

This commit is contained in:
mark_story 2010-12-20 14:02:12 -05:00
parent 0b90195a52
commit abc6a28eca

View file

@ -2231,4 +2231,17 @@ class PaginatorHelperTest extends CakeTestCase {
$this->assertTags($result, $expected);
}
/**
* test the current() method
*
* @return void
*/
function testCurrent() {
$result = $this->Paginator->current();
$this->assertEquals($this->Paginator->request->params['paging']['Article']['page'], $result);
$result = $this->Paginator->current('Incorrect');
$this->assertEquals(1, $result);
}
}