From 6bf8b6b7e2f0bafa252577810573b380a2987e8d Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Mon, 28 Jul 2014 18:43:58 +0530 Subject: [PATCH] Fix for assertion of status message for deletion of case type when in use. --- tests/phpunit/api/v3/CaseTypeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/CaseTypeTest.php b/tests/phpunit/api/v3/CaseTypeTest.php index 19a58952ed..e8b4d3d60a 100644 --- a/tests/phpunit/api/v3/CaseTypeTest.php +++ b/tests/phpunit/api/v3/CaseTypeTest.php @@ -216,7 +216,7 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase { // Deletion fails while case-type is in-use $deleteCaseType = $this->callAPIFailure('CaseType', 'delete', array('id' => $createCaseType['id'])); - $this->assertEquals("Cannot delete case type -- 1 record(s) depend on it", $deleteCaseType['error_message']); + $this->assertEquals("You can not delete this case type -- it is assigned to 1 existing case record(s). If you do not want this case type to be used going forward, consider disabling it instead.", $deleteCaseType['error_message']); $getCaseType = $this->callAPISuccess('CaseType', 'get', array('id' => $createCaseType['id'])); $this->assertEquals(1, $getCaseType['count']); -- 2.25.1