From: eileen Date: Mon, 13 Feb 2017 03:11:10 +0000 (+1300) Subject: Minor test tidy up X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bdb36a1a698dfef8fc5e0c02edc65a2cdce457ce;p=civicrm-core.git Minor test tidy up --- diff --git a/tests/phpunit/CRM/Core/BAO/UFFieldTest.php b/tests/phpunit/CRM/Core/BAO/UFFieldTest.php index ede681e112..c745657fb6 100644 --- a/tests/phpunit/CRM/Core/BAO/UFFieldTest.php +++ b/tests/phpunit/CRM/Core/BAO/UFFieldTest.php @@ -194,7 +194,6 @@ class CRM_Core_BAO_UFFieldTest extends CiviUnitTestCase { foreach ($fields as $field) { $defaults = array( - 'version' => 3, 'uf_group_id' => $ufGroup->id, 'visibility' => 'Public Pages and Listings', 'weight' => 1, @@ -204,7 +203,7 @@ class CRM_Core_BAO_UFFieldTest extends CiviUnitTestCase { 'location_type_id' => NULL, ); $params = array_merge($field, $defaults); - $ufField = civicrm_api('UFField', 'create', $params); + $ufField = $this->callAPISuccess('UFField', 'create', $params); $this->assertAPISuccess($ufField); }