Merge pull request #4909 from pratikshad/broken-webtest
[civicrm-core.git] / tests / phpunit / api / v3 / UFMatchTest.php
index 3b1020fb39f20479eb9c0bdd1a2a70dd30a66d11..30432e32f9f385682e0e7f9d4dddda14c1a3065a 100644 (file)
 */
 
 
-
-
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
  * Test class for UFGroup API - civicrm_uf_*
  * @todo Split UFGroup and UFJoin tests
  *
- *  @package   CiviCRM
+ * @package   CiviCRM
  */
 class api_v3_UFMatchTest extends CiviUnitTestCase {
   // ids from the uf_group_test.xml fixture
@@ -45,7 +43,6 @@ class api_v3_UFMatchTest extends CiviUnitTestCase {
   protected $_params = array();
 
 
-
   protected function setUp() {
     parent::setUp();
     $this->_apiversion = 3;
@@ -70,7 +67,7 @@ class api_v3_UFMatchTest extends CiviUnitTestCase {
       'uf_id' => '2',
       'uf_name' => 'blahdyblah@gmail.com',
       'domain_id' => 1,
-      );
+    );
   }
 
   public function tearDown() {
@@ -135,11 +132,14 @@ class api_v3_UFMatchTest extends CiviUnitTestCase {
 
   public function testDelete() {
     $result = $this->callAPISuccess('uf_match', 'create', $this->_params);
-    $this->assertEquals(1, $this->callAPISuccess('uf_match', 'getcount', array(      'id' => $result['id'],
-      )));
-    $this->callAPISuccess('uf_match', 'delete', array(      'id' => $result['id'],
+    $this->assertEquals(1, $this->callAPISuccess('uf_match', 'getcount', array(
+      'id' => $result['id'],
+    )));
+    $this->callAPISuccess('uf_match', 'delete', array(
+      'id' => $result['id'],
     ));
-    $this->assertEquals(0, $this->callAPISuccess('uf_match', 'getcount', array('id' => $result['id'],
-      )));
+    $this->assertEquals(0, $this->callAPISuccess('uf_match', 'getcount', array(
+      'id' => $result['id'],
+    )));
   }
 }