INFRA-132 - phpcbf Drupal.WhiteSpace.ScopeIndent.IncorrectExact
[civicrm-core.git] / tests / phpunit / api / v3 / MailSettingsTest.php
index 117d08dcdca071ed9fd68a29effb19f581c09d72..071e0763570dbd38b4c6043a1937764fe7e7a8d6 100644 (file)
@@ -1,8 +1,7 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
-| CiviCRM version 4.5                                                |
+| CiviCRM version 4.6                                                |
 +--------------------------------------------------------------------+
 | Copyright CiviCRM LLC (c) 2004-2014                                |
 +--------------------------------------------------------------------+
@@ -24,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -37,7 +36,7 @@ class api_v3_MailSettingsTest extends CiviUnitTestCase {
   protected $id;
   public $DBResetRequired = FALSE;
 
-  function setUp() {
+  public function setUp() {
     $this->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()));
   }
-}
 
+}