mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing test case that was missing request access.
This commit is contained in:
parent
ec2884f17c
commit
d044cdd02f
1 changed files with 2 additions and 2 deletions
|
@ -1574,7 +1574,7 @@ class PaginatorHelperTest extends CakeTestCase {
|
||||||
);
|
);
|
||||||
$this->assertTags($result, $expected);
|
$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' => ' ~~~ '));
|
$result = $this->Paginator->numbers(array('first' => 2, 'modulus' => 2, 'last' => 2, 'separator' => ' - ', 'ellipsis' => ' ~~~ '));
|
||||||
$expected = array(
|
$expected = array(
|
||||||
array('span' => array()), array('a' => array('href' => '/index/page:1')), '1', '/a', '/span',
|
array('span' => array()), array('a' => array('href' => '/index/page:1')), '1', '/a', '/span',
|
||||||
|
@ -1591,7 +1591,7 @@ class PaginatorHelperTest extends CakeTestCase {
|
||||||
);
|
);
|
||||||
$this->assertTags($result, $expected);
|
$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>'));
|
$result = $this->Paginator->numbers(array('first' => 2, 'modulus' => 2, 'last' => 2, 'separator' => ' - ', 'ellipsis' => '<span class="ellipsis">...</span>'));
|
||||||
$expected = array(
|
$expected = array(
|
||||||
array('span' => array()), array('a' => array('href' => '/index/page:1')), '1', '/a', '/span',
|
array('span' => array()), array('a' => array('href' => '/index/page:1')), '1', '/a', '/span',
|
||||||
|
|
Loading…
Reference in a new issue