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:
a29e89a
)
api_v3_WebsiteTest
author
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 19:59:38 +0000
(11:59 -0800)
committer
Tim Otten
<totten@civicrm.org>
Mon, 22 Dec 2014 19:59:38 +0000
(11:59 -0800)
tests/phpunit/api/v3/WebsiteTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/api/v3/WebsiteTest.php
b/tests/phpunit/api/v3/WebsiteTest.php
index 79771e292b4068338f22a899f15431f02793f22d..bdc2e1a9ab0077d02783e33ec7225a715dd6b7da 100644
(file)
--- a/
tests/phpunit/api/v3/WebsiteTest.php
+++ b/
tests/phpunit/api/v3/WebsiteTest.php
@@
-45,6
+45,7
@@
class api_v3_WebsiteTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
+ $this->useTransaction();
$this->_entity = 'website';
$this->_contactID = $this->organizationCreate();
@@
-55,13
+56,6
@@
class api_v3_WebsiteTest extends CiviUnitTestCase {
);
}
- function tearDown() {
- $this->quickCleanup(array(
- 'civicrm_website',
- 'civicrm_contact'
- ));
- }
-
public function testCreateWebsite() {
$result = $this->callAPIAndDocument($this->_entity, 'create', $this->params, __FUNCTION__, __FILE__);
$this->assertEquals(1, $result['count'], 'In line ' . __LINE__);