From aad4a62378983acd0fc600a674ff2dd075285bd8 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 2 Sep 2023 20:23:45 +1200 Subject: [PATCH] Fix Participant test to not use transations --- tests/phpunit/CRM/Event/Form/ParticipantTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Event/Form/ParticipantTest.php b/tests/phpunit/CRM/Event/Form/ParticipantTest.php index 61b91adc16..a87a70f42c 100644 --- a/tests/phpunit/CRM/Event/Form/ParticipantTest.php +++ b/tests/phpunit/CRM/Event/Form/ParticipantTest.php @@ -17,9 +17,10 @@ class CRM_Event_Form_ParticipantTest extends CiviUnitTestCase { use CRMTraits_Financial_OrderTrait; use CRMTraits_Financial_PriceSetTrait; - public function setUp(): void { - parent::setUp(); - $this->useTransaction(); + public function tearDown(): void { + $this->quickCleanUpFinancialEntities(); + $this->revertTemplateToReservedTemplate(); + parent::tearDown(); } /** -- 2.25.1