From 0f583c8ff773798787afac777b22d9b8488c311a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 27 Apr 2014 11:56:28 -0700 Subject: [PATCH] CRM-14522 - test-api partial skip on ActivityContact on singleValueAlter due to FK issue --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index c9c46b504d..08aa8c8d02 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -278,6 +278,12 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { return $entitiesWithout; } + /** + * @param $entity + * @param $key + * + * @return array + */ public function getKnownUnworkablesUpdateSingle($entity, $key){ // can't update values are values for which updates don't result in the value being changed $knownFailures = array( @@ -286,6 +292,11 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { 'group_id', ), ), + 'ActivityContact' => array( + 'cant_update' => array( + 'activity_id', //we have an FK on activity_id + contact_id + record id so if we don't leave this one distinct we get an FK constraint error + ), + ), 'Address' => array( 'cant_update' => array( 'state_province_id', //issues with country id - need to ensure same country -- 2.25.1