Coding standards cleanup sprint.
[civicrm-core.git] / tests / phpunit / api / v3 / MailSettingsTest.php
index 117d08dcdca071ed9fd68a29effb19f581c09d72..abc882f6bc5a5843046822a9b64e3259cf27ee63 100644 (file)
@@ -1,8 +1,7 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
-| CiviCRM version 4.5                                                |
+| CiviCRM version 4.6                                                |
 +--------------------------------------------------------------------+
 | Copyright CiviCRM LLC (c) 2004-2014                                |
 +--------------------------------------------------------------------+
@@ -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,
     );
@@ -113,4 +111,3 @@ class api_v3_MailSettingsTest extends CiviUnitTestCase {
     $this->assertEquals(0, $this->callAPISuccess('MailSettings', 'getcount', array()));
   }
 }
-