X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FMailSettingsTest.php;h=071e0763570dbd38b4c6043a1937764fe7e7a8d6;hb=e70a7fc01e4d73954614f33ff4ba352ec41c2334;hp=117d08dcdca071ed9fd68a29effb19f581c09d72;hpb=8a09f67755f309dcd2c990720c4f792054b77ce9;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/MailSettingsTest.php b/tests/phpunit/api/v3/MailSettingsTest.php index 117d08dcdc..071e076357 100644 --- a/tests/phpunit/api/v3/MailSettingsTest.php +++ b/tests/phpunit/api/v3/MailSettingsTest.php @@ -1,8 +1,7 @@ params = array( 'domain_id' => 1, 'name' => "my mail setting", @@ -49,10 +48,9 @@ class api_v3_MailSettingsTest extends CiviUnitTestCase { 'is_default' => 1, ); parent::setUp(); + $this->useTransaction(TRUE); } - function tearDown() {} - /** * Test creation */ @@ -103,8 +101,8 @@ class api_v3_MailSettingsTest extends CiviUnitTestCase { */ public function testGetMailSettingsChainDelete() { $description = "demonstrates get + delete in the same call"; - $subFile = 'ChainedGetDelete'; - $params = array( + $subFile = 'ChainedGetDelete'; + $params = array( 'title' => "MailSettings title", 'api.MailSettings.delete' => 1, ); @@ -112,5 +110,5 @@ class api_v3_MailSettingsTest extends CiviUnitTestCase { $this->callAPIAndDocument('MailSettings', 'get', $params, __FUNCTION__, __FILE__, $description, $subFile); $this->assertEquals(0, $this->callAPISuccess('MailSettings', 'getcount', array())); } -} +}