From: Ravish Nair Date: Mon, 19 Aug 2013 14:04:44 +0000 (+0530) Subject: -- CRM-13012 Run api_v3_SyntaxConformanceAllEntitiesTest with hrjob API's X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f56f3d8cdd76d2e5a11a484297bd60b668c78374;p=civicrm-core.git -- CRM-13012 Run api_v3_SyntaxConformanceAllEntitiesTest with hrjob API's ---------------------------------------- * CRM-13012: Run api_v3_SyntaxConformanceAllEntitiesTest with hrjob API's http://issues.civicrm.org/jira/browse/CRM-13012 --- diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index a05b0bdf31..7e2ce590fa 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -62,6 +62,8 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { $this->onlyIDNonZeroCount['get'] = array('ActivityType', 'Entity', 'Domain','Setting'); $this->deprecatedAPI = array('Location', 'ActivityType', 'SurveyRespondant'); $this->deletableTestObjects = array(); + //restrict extension fields that requires no update + $this->extensionEntitiesWithoutUpdate = array(); } function tearDown() { @@ -615,6 +617,11 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { return; } + //restrict extension fields that requires no update + if (!empty($this->extensionEntitiesWithoutUpdate) && in_array($entityName, $this->extensionEntitiesWithoutUpdate)) { + return; + } + $baoString = _civicrm_api3_get_DAO($entityName); $this->assertNotEmpty($baoString, $entityName); $this->assertNotEmpty($entityName, $entityName);