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:
51a1140
)
api_v3_DashboardContactTest - Change quickCleanup() to useTransaction()
author
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 21:28:44 +0000
(13:28 -0800)
committer
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 22:07:42 +0000
(14:07 -0800)
tests/phpunit/api/v3/DashboardContactTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/api/v3/DashboardContactTest.php
b/tests/phpunit/api/v3/DashboardContactTest.php
index 258515909395da05f23eed546452b34474000637..cd0cf0367203d649b7d6a3f876a58c5542181dc4 100644
(file)
--- a/
tests/phpunit/api/v3/DashboardContactTest.php
+++ b/
tests/phpunit/api/v3/DashboardContactTest.php
@@
-46,20
+46,7
@@
class api_v3_DashboardContactTest extends CiviUnitTestCase {
public function setUp() {
// Connect to the database
parent::setUp();
- }
-
- /**
- * Tears down the fixture, for example, closes a network connection.
- * This method is called after a test is executed.
- *
- * @access protected
- */
- function tearDown() {
- $tablesToTruncate = array(
- 'civicrm_dashboard',
- 'civicrm_dashboard_contact',
- );
- $this->quickCleanup($tablesToTruncate, TRUE);
+ $this->useTransaction(TRUE);
}
function testDashboardContactCreate() {