Skip to content

Commit

Permalink
Fixing test case that was missing request access.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 13, 2010
1 parent ec2884f commit d044cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/view/helpers/paginator.test.php
Expand Up @@ -1574,7 +1574,7 @@ function testNumbers() {
);
$this->assertTags($result, $expected);

$this->Paginator->params['paging']['Client']['page'] = 3;
$this->Paginator->request->params['paging']['Client']['page'] = 3;
$result = $this->Paginator->numbers(array('first' => 2, 'modulus' => 2, 'last' => 2, 'separator' => ' - ', 'ellipsis' => ' ~~~ '));
$expected = array(
array('span' => array()), array('a' => array('href' => '/index/page:1')), '1', '/a', '/span',
Expand All @@ -1591,7 +1591,7 @@ function testNumbers() {
);
$this->assertTags($result, $expected);

$this->Paginator->params['paging']['Client']['page'] = 3;
$this->Paginator->request->params['paging']['Client']['page'] = 3;
$result = $this->Paginator->numbers(array('first' => 2, 'modulus' => 2, 'last' => 2, 'separator' => ' - ', 'ellipsis' => '<span class="ellipsis">...</span>'));
$expected = array(
array('span' => array()), array('a' => array('href' => '/index/page:1')), '1', '/a', '/span',
Expand Down

0 comments on commit d044cdd

Please sign in to comment.