'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'];
}
$this->assertArrayHasKey('id', $result);
$note = array(
- 'id' => $result['id'], );
+ 'id' => $result['id'],);
$this->noteDelete($note);
}
'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__);
//CleanUP
$note = array(
- 'id' => $result['id'], );
+ 'id' => $result['id'],);
$this->noteDelete($note);
}
$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'],));
}
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'
);
'id' => $this->_noteID,
'contact_id' => $this->_contactID,
'note' => 'Note1',
- 'subject' => 'Hello World', );
+ 'subject' => 'Hello World',);
//Update Note
$this->callAPISuccess('note', 'create', $params);