mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Increasing code coverage.
This commit is contained in:
parent
0b90195a52
commit
abc6a28eca
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue