<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- /*
+ /**
* Test contact import for Individuals.
*/
- function testIndividualImport() {
+ public function testIndividualImport() {
$this->webtestLogin();
// Get sample import data.
$this->importContacts($headers, $rows, 'Individual', 'No Duplicate Checking');
}
- /*
+ /**
* Test contact import for Organization.
*/
- function testOrganizationImport() {
+ public function testOrganizationImport() {
$this->webtestLogin();
$this->importContacts($headers, $rows, 'Organization', 'No Duplicate Checking');
}
- /*
+ /**
* Test contact import for Household.
*/
- function testHouseholdImport() {
+ public function testHouseholdImport() {
$this->webtestLogin();
/**
* @return array
*/
- function _individualCSVData() {
+ public function _individualCSVData() {
$headers = array(
'first_name' => 'First Name',
'middle_name' => 'Middle Name',
);
$rows = array(
- array('first_name' => substr(sha1(rand()), 0, 7),
+ array(
+ 'first_name' => substr(sha1(rand()), 0, 7),
'middle_name' => substr(sha1(rand()), 0, 7),
'last_name' => 'Anderson',
'email' => substr(sha1(rand()), 0, 7) . '@example.com',
'state' => 'NY',
'country' => 'United States',
),
- array('first_name' => substr(sha1(rand()), 0, 7),
+ array(
+ 'first_name' => substr(sha1(rand()), 0, 7),
'middle_name' => substr(sha1(rand()), 0, 7),
'last_name' => 'Summerson',
'email' => substr(sha1(rand()), 0, 7) . '@example.com',
/**
* @return array
*/
- function _organizationCSVData() {
+ public function _organizationCSVData() {
$headers = array(
'organization_name' => 'Organization Name',
'email' => 'Email',
);
$rows = array(
- array('organization_name' => 'org_' . substr(sha1(rand()), 0, 7),
+ array(
+ 'organization_name' => 'org_' . substr(sha1(rand()), 0, 7),
'email' => substr(sha1(rand()), 0, 7) . '@example.org',
'phone' => '9949912154',
'address_1' => 'Add 1',
'state' => 'NY',
'country' => 'United States',
),
- array('organization_name' => 'org_' . substr(sha1(rand()), 0, 7),
+ array(
+ 'organization_name' => 'org_' . substr(sha1(rand()), 0, 7),
'email' => substr(sha1(rand()), 0, 7) . '@example.org',
'phone' => '6949412154',
'address_1' => 'Add 1',
/**
* @return array
*/
- function _householdCSVData() {
+ public function _householdCSVData() {
$headers = array(
'household_name' => 'Household Name',
'email' => 'Email',
);
$rows = array(
- array('household_name' => 'household_' . substr(sha1(rand()), 0, 7),
+ array(
+ 'household_name' => 'household_' . substr(sha1(rand()), 0, 7),
'email' => substr(sha1(rand()), 0, 7) . '@example.org',
'phone' => '3949912154',
'address_1' => 'Add 1',
'state' => 'NY',
'country' => 'United States',
),
- array('household_name' => 'household_' . substr(sha1(rand()), 0, 7),
+ array(
+ 'household_name' => 'household_' . substr(sha1(rand()), 0, 7),
'email' => substr(sha1(rand()), 0, 7) . '@example.org',
'phone' => '5949412154',
'address_1' => 'Add 1',
return array($headers, $rows);
}
}
-