From 62749b5a6b48fed163d2704037f708590d1ff6f1 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 6 Jul 2013 15:18:11 +1200 Subject: [PATCH] CRM-13016 update error code --- tests/phpunit/api/v3/APITest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/APITest.php b/tests/phpunit/api/v3/APITest.php index 5b7f8af042..3ac9e90125 100644 --- a/tests/phpunit/api/v3/APITest.php +++ b/tests/phpunit/api/v3/APITest.php @@ -189,7 +189,7 @@ class api_v3_APITest extends CiviUnitTestCase { $result = civicrm_api3('contact', 'create', array('debug' => 1)); } catch (CiviCRM_API3_Exception $e){ - $this->assertEquals('undefined', $e->getErrorCode()); + $this->assertEquals('mandatory_missing', $e->getErrorCode()); $this->assertEquals('Mandatory key(s) missing from params array: contact_type', $e->getMessage()); $extra = $e->getExtraParams(); $this->assertArrayHasKey('trace', $extra); -- 2.25.1