Create UFGroup in tear-down-able manner
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 6 Jun 2023 23:26:53 +0000 (11:26 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 7 Jun 2023 00:03:13 +0000 (12:03 +1200)
tests/phpunit/CRM/Profile/Form/EditTest.php

index b22c6f335b23455f047c090de46aecf7b20136ed..d04b6029380ac3f6e573cdcacc14fc10b46d654d 100644 (file)
@@ -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.