CRM-15855 - Allow mailings to be saved (but not sent) without name+subject.
[civicrm-core.git] / tests / phpunit / api / v3 / CustomSearchTest.php
index fe190a1924b1670f42767b188528bd1d77467f79..b2738166372a04efeffb5f5ad79e834e8b6cbedf 100644 (file)
@@ -8,13 +8,12 @@ require_once 'CiviTest/CiviUnitTestCase.php';
 class api_v3_CustomSearchTest extends CiviUnitTestCase {
   protected $_apiversion;
 
-  function setUp() {
+  public function setUp() {
     $this->_apiversion = 3;
     parent::setUp();
+    $this->useTransaction(TRUE);
   }
 
-  function tearDown() {}
-
   public function testCustomSearch() {
     $result = $this->callAPISuccess('CustomSearch', 'create', array(
       'label' => 'Invalid, overwritten',
@@ -69,4 +68,5 @@ class api_v3_CustomSearchTest extends CiviUnitTestCase {
       OR label = "CRM_Contact_Form_Search_Custom_Examplez"
       ');
   }
+
 }