Skip to content

Commit

Permalink
Avoid fail due to postgres ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed May 6, 2013
1 parent 7a9dd9a commit 36a51bd
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -891,7 +891,7 @@ public function testOutOfRangePageNumberGetsClamped() {

/**
* Test that a really REALLY large page number gets clamped to the max page size.
*
*
*
* @expectedException NotFoundException
* @return void
Expand Down Expand Up @@ -1138,7 +1138,9 @@ public function testPaginateOrderVirtualFieldSharedWithRealField() {
);
$Controller->passedArgs = array('sort' => 'PaginatorControllerPost.title', 'dir' => 'asc');
$result = $Controller->paginate('PaginatorControllerComment');
$this->assertEquals(array(1, 2, 3, 4, 5, 6), Hash::extract($result, '{n}.PaginatorControllerComment.id'));
$result = Hash::extract($result, '{n}.PaginatorControllerComment.id');
sort($result);
$this->assertEquals(array(1, 2, 3, 4, 5, 6), $result);
}

/**
Expand Down

0 comments on commit 36a51bd

Please sign in to comment.