From a128350269014fec2000cffa3c58ac2b116f1475 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Fri, 1 May 2015 10:39:11 -0400 Subject: [PATCH] fix issue with history pagination && stupid IDE change :) --- .../models/Case.group/History.group/CaseHistoryPage.yaml | 4 ++-- tests/Desk/Test/Helper/Operation/ListOperationTestCase.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Desk/service-description/models/Case.group/History.group/CaseHistoryPage.yaml b/lib/Desk/service-description/models/Case.group/History.group/CaseHistoryPage.yaml index 13f19d1..09a039b 100644 --- a/lib/Desk/service-description/models/Case.group/History.group/CaseHistoryPage.yaml +++ b/lib/Desk/service-description/models/Case.group/History.group/CaseHistoryPage.yaml @@ -7,8 +7,8 @@ properties: self: &SELF location: links data: - operation: ListCases - pattern: "#/cases\\??(?P<_query>.*)$#" + operation: ListCaseHistory + pattern: "#/cases/(?P[0-9]+)/history\\??(?P<_query>.*)$#" first: *SELF last: *SELF next: *SELF diff --git a/tests/Desk/Test/Helper/Operation/ListOperationTestCase.php b/tests/Desk/Test/Helper/Operation/ListOperationTestCase.php index 06f33dc..c6ee992 100644 --- a/tests/Desk/Test/Helper/Operation/ListOperationTestCase.php +++ b/tests/Desk/Test/Helper/Operation/ListOperationTestCase.php @@ -149,7 +149,7 @@ public function testSystem() /** * Contains assertions to make about the results of the system test * - * @param array $history Resulting models from system test + * @param array $models Resulting models from system test */ - abstract protected function assertSystem(array $history); + abstract protected function assertSystem(array $models); }