From f56f3d8cdd76d2e5a11a484297bd60b668c78374 Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Mon, 19 Aug 2013 19:34:44 +0530 Subject: [PATCH] -- 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 --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.25.1