From 827dc77a1114be297ff4b8e2a651ee400740c059 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 11 Feb 2014 22:00:24 -0500 Subject: [PATCH] Fix incorrect assertion. --- .../Test/Case/Controller/Component/PaginatorComponentTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php b/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php index b27c41117..5e99ed2a0 100644 --- a/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php @@ -610,7 +610,7 @@ class PaginatorComponentTest extends CakeTestCase { $Controller->PaginatorControllerPost->order = 'PaginatorControllerPost.id'; $result = $Controller->Paginator->validateSort($Controller->PaginatorControllerPost, array()); - $this->assertEmpty($result['order']); + $this->assertArrayNotHasKey('order', $result); $Controller->PaginatorControllerPost->order = array( 'PaginatorControllerPost.id',