From 5a81a1a1944d634a8da386353c721d7f48cdbe8c Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 17 Mar 2023 00:19:18 -0700 Subject: [PATCH] Normalize order of setUp()/useTransaction() - batch 6 --- tests/phpunit/CRM/Utils/API/ReloadOptionTest.php | 2 +- tests/phpunit/CRM/Utils/GlobalStackTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Utils/API/ReloadOptionTest.php b/tests/phpunit/CRM/Utils/API/ReloadOptionTest.php index dd20b2674a..efd9298a28 100644 --- a/tests/phpunit/CRM/Utils/API/ReloadOptionTest.php +++ b/tests/phpunit/CRM/Utils/API/ReloadOptionTest.php @@ -12,8 +12,8 @@ class CRM_Utils_API_ReloadOptionTest extends CiviUnitTestCase { public function setUp(): void { - $this->useTransaction(); parent::setUp(); + $this->useTransaction(); CRM_Utils_Hook_UnitTests::singleton()->setHook('civicrm_post', [$this, 'onPost']); } diff --git a/tests/phpunit/CRM/Utils/GlobalStackTest.php b/tests/phpunit/CRM/Utils/GlobalStackTest.php index 6f80d998eb..1fa4c165ba 100644 --- a/tests/phpunit/CRM/Utils/GlobalStackTest.php +++ b/tests/phpunit/CRM/Utils/GlobalStackTest.php @@ -7,8 +7,8 @@ class CRM_Utils_GlobalStackTest extends CiviUnitTestCase { public function setUp(): void { - $this->useTransaction(); parent::setUp(); + $this->useTransaction(); } /** -- 2.25.1