projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
924cd81
)
api_v3_NoteTest - Change quickCleanup() to useTransaction()
author
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 20:51:42 +0000
(12:51 -0800)
committer
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 22:06:53 +0000
(14:06 -0800)
tests/phpunit/api/v3/NoteTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/api/v3/NoteTest.php
b/tests/phpunit/api/v3/NoteTest.php
index fef78847bf24d9f32455ce6882f63f47986826bb..2d7f7e608f87066f7a52711f0ac32811a1e2d5d3 100644
(file)
--- a/
tests/phpunit/api/v3/NoteTest.php
+++ b/
tests/phpunit/api/v3/NoteTest.php
@@
-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
/**