Skip to content

Commit

Permalink
Dont use beforeRender in paginator helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Sep 21, 2014
1 parent 95223aa commit 06af33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/View/Helper/PaginatorHelperTest.php
Expand Up @@ -739,7 +739,7 @@ public function testPassedArgsMergingWithUrlOptions() {

$this->Paginator->request->params['pass'] = array(2);
$this->Paginator->request->query = array('page' => 1, 'foo' => 'bar', 'x' => 'y');
$this->Paginator->beforeRender(new Event('Foo.bar'), 'posts/index');
$this->Paginator->__construct($this->View);

$result = $this->Paginator->sort('title');
$expected = array(
Expand Down

0 comments on commit 06af33c

Please sign in to comment.