Skip to content

Commit

Permalink
test added to show pagination conditions will not result in incorrect…
Browse files Browse the repository at this point in the history
… count, refs #2736
  • Loading branch information
ceeram committed Mar 30, 2012
1 parent eba0b1f commit 65f25ed
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -331,6 +331,11 @@ public function testPaginate() {
$this->assertSame($Controller->params['paging']['PaginatorControllerPost']['pageCount'], 3);
$this->assertSame($Controller->params['paging']['PaginatorControllerPost']['prevPage'], false);
$this->assertSame($Controller->params['paging']['PaginatorControllerPost']['nextPage'], true);

$Controller->Paginator->settings = array('conditions' => array('PaginatorAuthor.user' => 'mariano'));
$Controller->Paginator->paginate('PaginatorControllerPost');

$this->assertSame(2, $Controller->params['paging']['PaginatorControllerPost']['count']);
}

/**
Expand Down

0 comments on commit 65f25ed

Please sign in to comment.