From 03fe1a0020f9c6a8e7adb43f9794b04eb1569088 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 15 Nov 2013 15:09:04 -0800 Subject: [PATCH] SyntaxConformanceTest - Skip single-value-alter for ActionSchedule.group_id --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index 5bcff6511e..7582f591e8 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -252,6 +252,11 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { public function getKnownUnworkablesUpdateSingle($entity, $key){ // can't update values are values for which updates don't result in the value being changed $knownFailures = array( + 'ActionSchedule' => array( + 'cant_update' => array( + 'group_id', + ), + ), 'Address' => array( 'cant_update' => array( 'state_province_id', //issues with country id - need to ensure same country @@ -738,9 +743,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { ); $checkEntity = $this->callAPISuccess($entityName, 'getsingle', $checkParams); - $this->assertAPIArrayComparison($entity, $checkEntity, array(), "changing field $fieldName\n"); - //print_r(array('update-params' => $updateParams, 'update-result' => $update, 'getsingle-params' => $checkParams, 'getsingle-result' => $checkEntity, 'expected entity' => $entity), TRUE) - + $this->assertAPIArrayComparison($entity, $checkEntity, array(), "changing field $fieldName\n" . print_r(array('update-params' => $updateParams, 'update-result' => $update, 'getsingle-params' => $checkParams, 'getsingle-result' => $checkEntity, 'expected entity' => $entity), TRUE)); } $baoObj->deleteTestObjects($baoString); $baoObj->free(); -- 2.25.1