From 9eebe75fd7545648975ebc591479be8f9770c26c Mon Sep 17 00:00:00 2001 From: kurund Date: Sun, 18 May 2014 12:54:00 +0530 Subject: [PATCH] removed unused variables, case type test CRM-14475 ---------------------------------------- * CRM-14475: https://issues.civicrm.org/jira/browse/CRM-14475 --- tests/phpunit/api/v3/CaseTypeTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/api/v3/CaseTypeTest.php b/tests/phpunit/api/v3/CaseTypeTest.php index ca280f3fdd..66c4566034 100644 --- a/tests/phpunit/api/v3/CaseTypeTest.php +++ b/tests/phpunit/api/v3/CaseTypeTest.php @@ -57,7 +57,7 @@ class api_v3_CaseTypeTest extends CiviUnitTestCase { * check with empty array */ function testCaseTypeCreateEmpty() { - $result = $this->callAPIFailure('CaseType', 'create', array()); + $this->callAPIFailure('CaseType', 'create', array()); } /** @@ -67,13 +67,13 @@ class api_v3_CaseTypeTest extends CiviUnitTestCase { $params = array( 'name' => 'this case should fail', ); - $result = $this->callAPIFailure('CaseType', 'create', $params); + $this->callAPIFailure('CaseType', 'create', $params); $params = array( 'name' => 'this case should fail', 'weight' => 4, ); - $result = $this->callAPIFailure('CaseType', 'create', $params); + $this->callAPIFailure('CaseType', 'create', $params); } /* @@ -117,7 +117,7 @@ class api_v3_CaseTypeTest extends CiviUnitTestCase { // Update Case Type $params = array('id' => $id); $params['title'] = $caseType['title'] = 'Something Else'; - $result = $this->callAPISuccess('CaseType', 'create', $params); + $this->callAPISuccess('CaseType', 'create', $params); // Verify that updated case Type is exactly equal to the original with new title $result = $this->callAPISuccess('CaseType', 'get', array('id' => $id)); @@ -138,7 +138,7 @@ class api_v3_CaseTypeTest extends CiviUnitTestCase { $result = $this->callAPISuccess('CaseType', 'create', $params); $id = $result['id']; - $result = $this->callAPISuccess('CaseType', 'delete', array('id' => $id)); + $this->callAPISuccess('CaseType', 'delete', array('id' => $id)); // Check result - case type should no longer exist $result = $this->callAPISuccess('CaseType', 'get', array('id' => $id)); -- 2.25.1