Merge pull request #4909 from pratikshad/broken-webtest
[civicrm-core.git] / tests / phpunit / api / v3 / NoteTest.php
index 0cf6fc488dc52b2f212a1dbda5ceadf5298dbbe0..548669c9516ac90f3a24b713ce4cd11ee3ef6bef 100644 (file)
@@ -54,7 +54,8 @@ class api_v3_NoteTest extends CiviUnitTestCase {
       'note' => 'Hello!!! m testing Note',
       'contact_id' => $this->_contactID,
       'modified_date' => '2011-01-31',
-      'subject' => 'Test Note',);
+      'subject' => 'Test Note',
+    );
     $this->_note = $this->noteCreate($this->_contactID);
     $this->_noteID = $this->_note['id'];
   }
@@ -136,7 +137,8 @@ class api_v3_NoteTest extends CiviUnitTestCase {
 
     $this->assertArrayHasKey('id', $result);
     $note = array(
-      'id' => $result['id'],);
+      'id' => $result['id'],
+    );
     $this->noteDelete($note);
   }
 
@@ -148,7 +150,8 @@ class api_v3_NoteTest extends CiviUnitTestCase {
       'contact_id' => $this->_contactID,
       'modified_date' => '2011-01-31',
       'subject' => "With a '",
-      'sequential' => 1,);
+      'sequential' => 1,
+    );
     $result = $this->callAPISuccess('Note', 'Create', $params);
     $this->assertAPISuccess($result, 'in line ' . __LINE__);
     $this->assertEquals($result['values'][0]['note'], "Hello!!! ' testing Note", 'in line ' . __LINE__);
@@ -157,7 +160,8 @@ class api_v3_NoteTest extends CiviUnitTestCase {
 
     //CleanUP
     $note = array(
-      'id' => $result['id'],);
+      'id' => $result['id'],
+    );
     $this->noteDelete($note);
   }
 
@@ -170,7 +174,8 @@ class api_v3_NoteTest extends CiviUnitTestCase {
     $this->assertAPISuccess($apiResult);
     $this->assertEquals(date('Y-m-d'), date('Y-m-d', strtotime($apiResult['values'][$apiResult['id']]['modified_date'])));
     $this->noteDelete(array(
-      'id' => $apiResult['id'],));
+      'id' => $apiResult['id'],
+    ));
   }
 
 
@@ -192,7 +197,8 @@ class api_v3_NoteTest extends CiviUnitTestCase {
   public function testUpdateWithoutContactId() {
     $params = array(
       'entity_id' => $this->_contactID,
-      'entity_table' => 'civicrm_contact',);
+      'entity_table' => 'civicrm_contact',
+    );
     $note = $this->callAPIFailure('note', 'create', $params,
       'Mandatory key(s) missing from params array: note'
     );
@@ -206,7 +212,8 @@ class api_v3_NoteTest extends CiviUnitTestCase {
       'id' => $this->_noteID,
       'contact_id' => $this->_contactID,
       'note' => 'Note1',
-      'subject' => 'Hello World',);
+      'subject' => 'Hello World',
+    );
 
     //Update Note
     $this->callAPISuccess('note', 'create', $params);