From 9937542bc38a10f6627bb334cc4c5089ebb26164 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 7 Jan 2016 14:24:04 -0500 Subject: [PATCH] Case test fixes --- tests/phpunit/api/v3/CaseTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/api/v3/CaseTest.php b/tests/phpunit/api/v3/CaseTest.php index d4112f19ea..42c82fcc98 100644 --- a/tests/phpunit/api/v3/CaseTest.php +++ b/tests/phpunit/api/v3/CaseTest.php @@ -128,11 +128,11 @@ class api_v3_CaseTest extends CiviCaseTestCase { // Update Case. $params = array('id' => $id); - $params['subject'] = $case['subject'] = $case['case_subject'] = 'Something Else'; + $params['subject'] = $case['subject'] = 'Something Else'; $this->callAPISuccess('case', 'create', $params); // Verify that updated case is exactly equal to the original with new subject. - $result = $this->callAPISuccess('case', 'getsingle', array('case_id' => $id)); + $result = $this->callAPISuccessGetSingle('Case', array('case_id' => $id)); $this->assertAPIArrayComparison($result, $case); } @@ -190,7 +190,7 @@ class api_v3_CaseTest extends CiviCaseTestCase { $id = $result['id']; // Store result for later - $case = $this->callAPISuccess('case', 'getsingle', array('id' => $id, 'return' => array('activities', 'contacts'))); + $case = $this->callAPISuccessGetSingle('case', array('id' => $id, 'return' => array('activities', 'contacts'))); // Fetch case based on client contact id $result = $this->callAPISuccess('case', 'get', array( @@ -209,7 +209,7 @@ class api_v3_CaseTest extends CiviCaseTestCase { $id = $result['id']; // Store result for later - $case = $this->callAPISuccess('case', 'getsingle', array('id' => $id, 'return' => 'subject')); + $case = $this->callAPISuccessGetSingle('Case', array('id' => $id, 'return' => 'subject')); // Fetch case based on client contact id $result = $this->callAPISuccess('case', 'get', array( @@ -241,7 +241,7 @@ class api_v3_CaseTest extends CiviCaseTestCase { $id = $result['id']; // Store result for later - $case = $this->callAPISuccess('case', 'getsingle', array('id' => $id, 'return' => 'contact_id')); + $case = $this->callAPISuccessGetSingle('Case', array('id' => $id, 'return' => 'contact_id')); $result = $this->callAPISuccess('case', 'get', array('limit' => 0, 'return' => array('contact_id'))); $this->assertAPIArrayComparison($result['values'][$id], $case); -- 2.25.1