From c0b8563571b3fb2b1ba893896b3a2c0041188f46 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 7 Jun 2023 11:26:53 +1200 Subject: [PATCH] Create UFGroup in tear-down-able manner --- tests/phpunit/CRM/Profile/Form/EditTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Profile/Form/EditTest.php b/tests/phpunit/CRM/Profile/Form/EditTest.php index b22c6f335b..d04b602938 100644 --- a/tests/phpunit/CRM/Profile/Form/EditTest.php +++ b/tests/phpunit/CRM/Profile/Form/EditTest.php @@ -76,7 +76,7 @@ class CRM_Profile_Form_EditTest extends CiviUnitTestCase { ], ]; - $profile = $this->callAPISuccess('uf_group', 'create', $ufGroupParams); + $profile = $this->createTestEntity('UFGroup', $ufGroupParams); $profileID = $profile['id']; // Configure the profile to be used as a standalone profile for data entry. -- 2.25.1