(NFC) RegionTest - Small cleanups
authorTim Otten <totten@civicrm.org>
Sat, 9 May 2020 02:40:08 +0000 (19:40 -0700)
committerTim Otten <totten@civicrm.org>
Sat, 9 May 2020 02:40:08 +0000 (19:40 -0700)
tests/phpunit/CRM/Core/RegionTest.php

index 406dd6ba382f4ce48b1446d20eef72056a51c04d..3c1ef2f4c9d339fb522238864b9510dd87759421 100644 (file)
@@ -8,12 +8,12 @@ class CRM_Core_RegionTest extends CiviUnitTestCase {
 
   public function setUp() {
     parent::setUp();
-    require_once 'CRM/Core/Smarty.php';
-    require_once 'CRM/Core/Region.php';
 
     // Templates injected into regions should normally be file names, but for unit-testing it's handy to use "string:" notation
     require_once 'CRM/Core/Smarty/resources/String.php';
     civicrm_smarty_register_string_resource();
+
+    $this->useTransaction();
   }
 
   /**