From 0fbbde9447dc4c165217588de75388269bd48b18 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 2 Jun 2013 22:48:26 -0400 Subject: [PATCH] api_v3_ConstantTest - Clearer errors --- tests/phpunit/api/v3/ConstantTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/api/v3/ConstantTest.php b/tests/phpunit/api/v3/ConstantTest.php index 2d7a809e9e..0dc6689ea2 100644 --- a/tests/phpunit/api/v3/ConstantTest.php +++ b/tests/phpunit/api/v3/ConstantTest.php @@ -130,6 +130,7 @@ class api_v3_ConstantTest extends CiviUnitTestCase { 'version' => $this->_apiversion, ); $result = civicrm_api('constant', 'get', $params); + $this->assertAPISuccess($result); $this->documentMe($params, $result, __FUNCTION__, __FILE__); $this->assertTrue($result['count'] > 3, "In line " . __LINE__); $this->assertContains('Home', $result['values'], "In line " . __LINE__); @@ -150,6 +151,7 @@ class api_v3_ConstantTest extends CiviUnitTestCase { 'name' => 'phoneType', 'version' => $this->_apiversion, )); + $this->assertAPISuccess($result); $this->assertEquals(5, $result['count'], "In line " . __LINE__); $this->assertContains('Phone', $result['values'], "In line " . __LINE__); @@ -175,6 +177,7 @@ class api_v3_ConstantTest extends CiviUnitTestCase { 'name' => 'mailProtocol', 'version' => $this->_apiversion, )); + $this->assertAPISuccess($result); $this->assertEquals(4, $result['count'], "In line " . __LINE__); $this->assertContains('IMAP', $result['values'], "In line " . __LINE__); -- 2.25.1