From: Tim Otten Date: Fri, 17 Mar 2023 07:19:18 +0000 (-0700) Subject: Normalize order of setUp()/useTransaction() - batch 6 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5a81a1a1944d634a8da386353c721d7f48cdbe8c;p=civicrm-core.git Normalize order of setUp()/useTransaction() - batch 6 --- 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(); } /**