Normalize order of setUp()/useTransaction() - batch 4
authorTim Otten <totten@civicrm.org>
Fri, 17 Mar 2023 05:54:15 +0000 (22:54 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 17 Mar 2023 06:08:16 +0000 (23:08 -0700)
20 files changed:
tests/phpunit/CRM/Utils/LazyArrayTest.php
tests/phpunit/CRM/Utils/Mail/FilteredPearMailerTest.php
tests/phpunit/CRM/Utils/Mail/IncomingTest.php
tests/phpunit/CRM/Utils/MailTest.php
tests/phpunit/CRM/Utils/MoneyTest.php
tests/phpunit/CRM/Utils/NumberTest.php
tests/phpunit/CRM/Utils/PDF/UtilsTest.php
tests/phpunit/CRM/Utils/RuleTest.php
tests/phpunit/CRM/Utils/SQL/DeleteTest.php
tests/phpunit/CRM/Utils/SQL/InsertTest.php
tests/phpunit/CRM/Utils/SQL/SelectTest.php
tests/phpunit/CRM/Utils/SQLTest.php
tests/phpunit/CRM/Utils/SignerTest.php
tests/phpunit/CRM/Utils/StringTest.php
tests/phpunit/CRM/Utils/SystemTest.php
tests/phpunit/CRM/Utils/TimeTest.php
tests/phpunit/CRM/Utils/TokenTest.php
tests/phpunit/CRM/Utils/XMLTest.php
tests/phpunit/CRM/Utils/ZipTest.php
tests/phpunit/CRM/Utils/versionCheckTest.php

index 8f6209a1627e1f5b9efc7054fb0432174fc2c658..e288f7cae8ca587638d8978c2ffb1a27f439ed61 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_LazyArrayTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testAssoc() {
index fe4796db8ae0788f37c4938dad85bd93aa0d4a4d..307db97b0ca9d7591c94d9ad465f26a43019f6bc 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_Mail_FilteredPearMailerTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testFilter() {
index 2e1073106e1e1c6b2fe8141a9bd3d7b4b4353646..aebc2fab72e25358dfb68b4b167d1ae4b1ff18ad 100644 (file)
@@ -32,8 +32,8 @@ class CRM_Utils_Mail_IncomingTest extends CiviUnitTestCase {
   protected $name;
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
 
     $rand = rand(0, 1000);
     $this->email = "test{$rand}@example.com";
index bd287856c4f70c8f5abec8c02ad57bb11f0e8a5f..8e32fac88975ed2c362e666362d035761d2fd163 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_MailTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**
index eb404bbb0acdd9398d50fd9dfe5bbba691f88c00..11c6e133f91ef9785e59af5731209082d895bea5 100644 (file)
@@ -8,8 +8,8 @@
 class CRM_Utils_MoneyTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**
index 9ed164204df827b11efceeccf0543f09e3f18340..b966d00d6e10f7ff86b3c34646f0f54486d95c5f 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_NumberTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**
index 0a7c97ad8ae8c859c9b743e81f09f841a6f245dd..ba81abe0f4aafdd55f4db1307025b547473a9074 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_PDF_UtilsTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**
index 007887b11cf1c278b5b9cfaa2d94c1e6c9f8c97f..bc6915be0c2e3b23fbbaff9bc1b28caeaacd1212 100644 (file)
@@ -10,8 +10,8 @@ class CRM_Utils_RuleTest extends CiviUnitTestCase {
    * Set up for tests.
    */
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**
index a9a832232fbd229d7a83fbe622e15af123065ded..852de079731335d24bc85dee3cd2e708878b7232 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_SQL_DeleteTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testGetDefault() {
index 0bd377ddbee0a574a0218c3114556319a7813436..de3a801eb571457e714712cae7e27c6e76ba0bd8 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_SQL_InsertTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testRow_twice() {
index c36641cdc80b6332967cb5c36e07b983459a62a7..ab601cc6b74b276b2bcbc3415d477d971f8f4f78 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testGetDefault() {
index 5114f6014bd32f44bf82f81b35ddc442f3d052a5..02e3a879c81914909ccb1ab3a11a1b3663ebb051 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_SQLTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testInterpolate() {
index f30dcbfc622132043eedf695b2fa342339a18ca5..aef18d5684b324a3ee2766d8ca884705a6ce6e07 100644 (file)
@@ -16,8 +16,8 @@
 class CRM_Utils_SignerTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testSignValidate() {
index a593e25ee126f453a0ddcc8192712d9ccafd4d91..4a86843c3532dbe48f979017c154e7d753d33b5a 100644 (file)
@@ -10,8 +10,8 @@ class CRM_Utils_StringTest extends CiviUnitTestCase {
    * Set up for tests.
    */
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testBase64Url(): void {
index edc7c0ed2370693c8007900657fae6aaea09b066..964231da53b8e1c766ab8216335e8529f96a2cb5 100644 (file)
@@ -8,8 +8,8 @@
 class CRM_Utils_SystemTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testUrlQueryString() {
index 1db72865cfab65777c3af3b14ac54765333f3557..6218c12b0c49a88f3f9c8362629530b5137e11f8 100644 (file)
@@ -7,8 +7,8 @@
 class CRM_Utils_TimeTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**
index ebd5d25511f8ce39941ff43c2d575be4834a0bdf..962e52b8b41819e8bedeecf12fd499ab19a9bc38 100644 (file)
@@ -9,8 +9,8 @@ use Civi\Token\TokenProcessor;
 class CRM_Utils_TokenTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**
index 2f0f250d83a084f017edc56c0edbdb12828d9f81..9d16cd22086cc7e4f3f6e19cc7123c508e3c6920 100644 (file)
@@ -10,8 +10,8 @@ class CRM_Utils_XMLTest extends CiviUnitTestCase {
    * Set up for tests.
    */
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   public function testFilterMarkupTest(): void {
index 28632948fb1ca405030356402259d4d6472a0118..5b43c3f473fae1782b256b2f3b7217110d5f3e55 100644 (file)
@@ -22,8 +22,8 @@ class CRM_Utils_ZipTest extends CiviUnitTestCase {
   private $file = FALSE;
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
     $this->file = FALSE;
   }
 
index f1a2c449c2e6cbb59a0efb290b3c77ae84aed39b..cc164b6a795dcdb5db90116abdeddebc8b06a564 100644 (file)
@@ -9,8 +9,8 @@ use Civi\Test\Invasive;
 class CRM_Utils_versionCheckTest extends CiviUnitTestCase {
 
   public function setUp(): void {
-    $this->useTransaction();
     parent::setUp();
+    $this->useTransaction();
   }
 
   /**