From 4a61ebea004d6e5eba0cb8eb813fcc6f22a09e5d Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Wed, 27 Nov 2013 16:12:01 -0400 Subject: [PATCH] Litle update on Test api class --- .../engine/src/Services/Api/ProcessMaker/Test.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/workflow/engine/src/Services/Api/ProcessMaker/Test.php b/workflow/engine/src/Services/Api/ProcessMaker/Test.php index 9152ba39b..7dd142550 100644 --- a/workflow/engine/src/Services/Api/ProcessMaker/Test.php +++ b/workflow/engine/src/Services/Api/ProcessMaker/Test.php @@ -66,13 +66,13 @@ class Test extends Api { if (array_key_exists($id, $this->data)) { if (array_key_exists('name', $request_data)) { - $this->data[$id] = $request_data['name']; + $this->data[$id]['name'] = $request_data['name']; } if (array_key_exists('lastname', $request_data)) { - $this->data[$id] = $request_data['lastname']; + $this->data[$id]['lastname'] = $request_data['lastname']; } if (array_key_exists('age', $request_data)) { - $this->data[$id] = $request_data['age']; + $this->data[$id]['age'] = $request_data['age']; } $this->saveData(); @@ -95,14 +95,6 @@ class Test extends Api } } - /** - * @url GET /testing/sample/:param - */ - function doOverride($param) - { - return $param; - } - /* Private methods */ private function loadData() {