Skip to content
Permalink
Browse files

Remove personal comments for pull request

  • Loading branch information...
lucasferreira committed May 31, 2017
1 parent ee1980b commit 32581991931d600a039798d6b9fc7b4ee47410bd
Showing with 0 additions and 4 deletions.
  1. +0 −4 lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
@@ -320,14 +320,12 @@ public function testPaginate() {
$Controller->PaginatorControllerPost->order = null;
/* ORDER ARRAY FIELD => SORT MODE */
$Controller->Paginator->settings = array(
'order' => array('PaginatorControllerComment.id' => 'ASC')
);
$results = Hash::extract($Controller->Paginator->paginate('PaginatorControllerComment'), '{n}.PaginatorControllerComment.id');
$this->assertEquals(array(1, 2, 3, 4, 5, 6), $results);
/* ORDER ARRAY "FIELD SORT" MODE */
$Controller->Paginator->settings = array(
'order' => array('PaginatorControllerComment.id DESC')
);
@@ -627,7 +625,6 @@ public function testPaginateOrderModelDefault() {
$result = $Controller->Paginator->validateSort($Controller->PaginatorControllerPost, array());
$this->assertArrayNotHasKey('order', $result);
/* DEFAULT */
$Controller->PaginatorControllerPost->order = array(
'PaginatorControllerPost.id',
'PaginatorControllerPost.created' => 'asc'
@@ -639,7 +636,6 @@ public function testPaginateOrderModelDefault() {
);
$this->assertEquals($expected, $result['order']);
/* CLASSIC */
$Controller->PaginatorControllerPost->order = array(
'PaginatorControllerPost.id ASC',
'PaginatorControllerPost.created DESC'

0 comments on commit 3258199

Please sign in to comment.
You can’t perform that action at this time.