-- CRM-13012 Run api_v3_SyntaxConformanceAllEntitiesTest with hrjob API's
authorRavish Nair <ravish.nair@webaccess.co.in>
Mon, 19 Aug 2013 14:04:44 +0000 (19:34 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Wed, 21 Aug 2013 07:09:21 +0000 (12:39 +0530)
----------------------------------------
* CRM-13012: Run api_v3_SyntaxConformanceAllEntitiesTest with hrjob API's
  http://issues.civicrm.org/jira/browse/CRM-13012

tests/phpunit/api/v3/SyntaxConformanceTest.php

index a05b0bdf31186290c4e8a4775bedeb9350b584da..7e2ce590fabc45e115c2557ecb00f0a968893037 100644 (file)
@@ -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);