<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*/
require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Import_ContactSubtypeTest
+ */
class WebTest_Import_ContactSubtypeTest extends ImportCiviSeleniumTestCase {
protected function setUp() {
/*
* Test contact import for Individuals Subtype.
*/
- function testIndividualSubtypeImport() {
+ public function testIndividualSubtypeImport() {
$this->webtestLogin();
// Get sample import data.
/*
* Test contact import for Organization Subtype.
*/
- function testOrganizationSubtypeImport() {
+ public function testOrganizationSubtypeImport() {
$this->webtestLogin();
// Get sample import data.
/*
* Test contact import for Household Subtype.
*/
- function testHouseholdSubtypeImport() {
+ public function testHouseholdSubtypeImport() {
$this->webtestLogin();
// Create Household Subtype
/*
* Helper function to create Household Subtype.
*/
- function _createHouseholdSubtype() {
+ /**
+ * @return string
+ */
+ public function _createHouseholdSubtype() {
// Visit to create contact subtype
$this->openCiviPage("admin/options/subtype", "action=add&reset=1");
/*
* Helper function to provide data for contact import for Individuals Subtype.
*/
- function _individualSubtypeCSVData() {
+ /**
+ * @return array
+ */
+ public function _individualSubtypeCSVData() {
$headers = array(
'first_name' => 'First Name',
'middle_name' => 'Middle Name',
/*
* Helper function to provide data for contact import for Organizations Subtype.
*/
- function _organizationSubtypeCSVData() {
+ /**
+ * @return array
+ */
+ public function _organizationSubtypeCSVData() {
$headers = array(
'organization_name' => 'Organization Name',
'email' => 'Email',
/*
* Helper function to provide data for contact import for Household Subtype.
*/
- function _householdSubtypeCSVData() {
+ /**
+ * @return array
+ */
+ public function _householdSubtypeCSVData() {
$headers = array(
'household_name' => 'Household Name',
'email' => 'Email',