Normalize order of setUp()/useTransaction() - batch 6
authorTim Otten <totten@civicrm.org>
Fri, 17 Mar 2023 07:19:18 +0000 (00:19 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 17 Mar 2023 07:19:18 +0000 (00:19 -0700)
tests/phpunit/CRM/Utils/API/ReloadOptionTest.php
tests/phpunit/CRM/Utils/GlobalStackTest.php

index dd20b2674a17633f91e23a769c63afecb348d95b..efd9298a28fa0a27f831f7a9c248f1544bdffbb4 100644 (file)
@@ -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']);
   }
 
index 6f80d998eb0c523e1d60afd1af826db413e77a51..1fa4c165ba42c0b6644e3519a51ed19da56d5da3 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_GlobalStackTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**