<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- /*
- * Test contact import for Individuals.
- */
- function testIndividualImportWithGroup() {
+ /**
+ * Test contact import for Individuals.
+ */
+ public function testIndividualImportWithGroup() {
$this->webtestLogin();
// Get sample import data.
$this->assertTrue($this->isTextPresent("{$count} Contacts"), "Contacts Not Found");
}
- /*
- * Helper function to provide data for contact import for Individuals.
- */
/**
+ * Helper function to provide data for contact import for Individuals.
+ *
* @return array
*/
- function _individualGroupCSVData() {
+ public function _individualGroupCSVData() {
$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($headers, $rows);
}
}
-