api_v3_NoteTest - Change quickCleanup() to useTransaction()
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 20:51:42 +0000 (12:51 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:06:53 +0000 (14:06 -0800)
tests/phpunit/api/v3/NoteTest.php

index fef78847bf24d9f32455ce6882f63f47986826bb..2d7f7e608f87066f7a52711f0ac32811a1e2d5d3 100644 (file)
@@ -63,6 +63,7 @@ class api_v3_NoteTest extends CiviUnitTestCase {
     $this->_apiversion = 3;
     //  Connect to the database
     parent::setUp();
+    $this->useTransaction(TRUE);
 
     $this->_contactID = $this->organizationCreate(NULL);
 
@@ -77,13 +78,6 @@ class api_v3_NoteTest extends CiviUnitTestCase {
     $this->_noteID = $this->_note['id'];
   }
 
-  function tearDown() {
-    $tablesToTruncate = array(
-      'civicrm_note', 'civicrm_contact',
-    );
-    $this->quickCleanup($tablesToTruncate);
-  }
-
   ///////////////// civicrm_note_get methods
 
   /**