Skip to content

Commit

Permalink
Increasing code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 20, 2010
1 parent 0b90195 commit abc6a28
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cake/tests/cases/libs/view/helpers/paginator.test.php
Expand Up @@ -2231,4 +2231,17 @@ function testQuerystringNextAndPrev() {
$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);
}

}

0 comments on commit abc6a28

Please sign in to comment.