function activityCreate($params = NULL) {
if ($params === NULL) {
- $individualSourceID = $this->individualCreate(NULL);
+ $individualSourceID = $this->individualCreate();
$contactParams = array(
'first_name' => 'Julia',
function setUp() {
parent::setUp();
- $this->_individualID = $this->individualCreate(NULL);
+ $this->_individualID = $this->individualCreate();
$this->_tag = $this->tagCreate();
$this->_tagID = $this->_tag['id'];
$this->_householdID = $this->houseHoldCreate(NULL);
* Trying to delete an event with participants should return error
*/
function testDeleteWithExistingParticipant() {
- $contactID = $this->individualCreate(NULL);
+ $contactID = $this->individualCreate();
$participantID = $this->participantCreate(
array(
'contactID' => $contactID,
function setUp() {
parent::setUp();
- $this->_contactId = $this->individualCreate(NULL);
+ $this->_contactId = $this->individualCreate();
$this->_groupId1 = $this->groupCreate(NULL);
$params = array(
* Test civicrm_membership_payment_create - success expected.
*/
public function testCreate() {
- $contactId = $this->individualCreate(NULL);
+ $contactId = $this->individualCreate();
$params = array(
'contact_id' => $contactId,
* Test civicrm_membershipPayment_get - success expected.
*/
public function testGet() {
- $contactId = $this->individualCreate(NULL);
+ $contactId = $this->individualCreate();
$params = array(
'contact_id' => $contactId,
'membership_type_id' => $this->_membershipTypeID,
$this->_membershipTypeID = $this->membershipTypeCreate(array('member_of_contact_id' => $this->_contactID));
$this->_membershipStatusID = $this->membershipStatusCreate('test status');
- require_once 'CRM/Member/PseudoConstant.php';
CRM_Member_PseudoConstant::membershipType(NULL, TRUE);
CRM_Member_PseudoConstant::membershipStatus(NULL, NULL, 'name', TRUE);
CRM_Core_PseudoConstant::activityType(TRUE, TRUE, TRUE, 'name');
*/
function testGetWithRelationship() {
$membershipOrgId = $this->organizationCreate(NULL);
- $memberContactId = $this->individualCreate(NULL);
+ $memberContactId = $this->individualCreate();
$relTypeParams = array(
'name_a_b' => 'Relation 1',
$this->quickCleanup($tablesToTruncate);
$event = $this->eventCreate(NULL);
$this->_eventID = $event['id'];
- $this->_contactID = $this->individualCreate(NULL);
+ $this->_contactID = $this->individualCreate();
$this->_createdParticipants = array();
- $this->_individualId = $this->individualCreate(NULL);
+ $this->_individualId = $this->individualCreate();
$this->_participantID = $this->participantCreate(array('contactID' => $this->_contactID, 'eventID' => $this->_eventID));
- $this->_contactID2 = $this->individualCreate(NULL);
+ $this->_contactID2 = $this->individualCreate();
$this->_participantID2 = $this->participantCreate(array('contactID' => $this->_contactID2, 'eventID' => $this->_eventID));
$this->_participantID3 = $this->participantCreate(array('contactID' => $this->_contactID2, 'eventID' => $this->_eventID));
- $this->_contactID3 = $this->individualCreate(NULL);
+ $this->_contactID3 = $this->individualCreate();
$this->_participantID4 = $this->participantCreate(array('contactID' => $this->_contactID3, 'eventID' => $this->_eventID));
}
$event = $this->eventCreate(NULL);
$this->_eventID = $event['id'];
- $this->_contactID = $this->individualCreate(NULL);
+ $this->_contactID = $this->individualCreate();
$this->_createdParticipants = array();
- $this->_individualId = $this->individualCreate(NULL);
+ $this->_individualId = $this->individualCreate();
$this->_participantID = $this->participantCreate(array('contact_id' => $this->_contactID, 'event_id' => $this->_eventID));
- $this->_contactID2 = $this->individualCreate(NULL);
+ $this->_contactID2 = $this->individualCreate();
$this->_participantID2 = $this->participantCreate(array('contact_id' => $this->_contactID2, 'event_id' => $this->_eventID));
$this->_participantID3 = $this->participantCreate(array('contact_id' => $this->_contactID2, 'event_id' => $this->_eventID));
$this->_params = array(
function setUp() {
parent::setUp();
- $this->_individualId = $this->individualCreate(NULL);
+ $this->_individualId = $this->individualCreate();
$this->_pledgeID = $this->pledgeCreate($this->_individualId);
$this->_contributionID = $this->contributionCreate($this->_individualId);
}
//due to timezone issues
$this->scheduled_date = date('Ymd', mktime(0, 0, 0, date("m"), date("d") + 2, date("y")));
$this->_entity = 'Pledge';
- $this->_individualId = $this->individualCreate(NULL);
+ $this->_individualId = $this->individualCreate();
$this->_params = array(
'contact_id' => $this->_individualId,
'pledge_create_date' => date('Ymd'),
function setUp() {
parent::setUp();
- $this->_cId_a = $this->individualCreate(NULL);
+ $this->_cId_a = $this->individualCreate();
$this->_cId_b = $this->organizationCreate();
$this->_cId_b2 = $this->organizationCreate(array('organization_name' => ' Org 2'));
$this->_entity = 'relationship';
function setUp() {
parent::setUp();
- $this->_cId_a = $this->individualCreate(NULL);
- $this->_cId_b = $this->organizationCreate(NULL);
+ $this->_cId_a = $this->individualCreate();
+ $this->_cId_b = $this->organizationCreate();
}
function tearDown() {