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:
56b010a
)
api_v3_DashboardTest - 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:39 +0000
(14:07 -0800)
tests/phpunit/api/v3/DashboardTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/api/v3/DashboardTest.php
b/tests/phpunit/api/v3/DashboardTest.php
index 245de3b46aa4fe967b372c7746985ed2de4348a4..3e031d96fdf58acc6552af29145f2d85d76943b8 100644
(file)
--- a/
tests/phpunit/api/v3/DashboardTest.php
+++ b/
tests/phpunit/api/v3/DashboardTest.php
@@
-46,19
+46,7
@@
class api_v3_DashboardTest 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',
- );
- $this->quickCleanup($tablesToTruncate, TRUE);
+ $this->useTransaction(TRUE);
}
function testDashboardCreate() {