<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- function testContactContextAdd() {
+ public function testContactContextAdd() {
// Log in using webtestLogin() method
$this->webtestLogin();
// We're using Quick Add block on the main page for this.
$firstName = substr(sha1(rand()), 0, 7);
// Add new Financial Account
- $orgName = 'Alberta '.substr(sha1(rand()), 0, 7);
- $financialAccountTitle = 'Financial Account '.substr(sha1(rand()), 0, 4);
+ $orgName = 'Alberta ' . substr(sha1(rand()), 0, 7);
+ $financialAccountTitle = 'Financial Account ' . substr(sha1(rand()), 0, 4);
$financialAccountDescription = "{$financialAccountTitle} Description";
$accountingCode = 1033;
$financialAccountType = 'Asset';
$isDefault = FALSE;
//Add new organisation
- if($orgName) {
+ if ($orgName) {
$this->webtestAddOrganization($orgName);
}
$this->_testAddFinancialAccount($financialAccountTitle,
$isDefault
);
- $this->webtestAddContact($firstName, "Anderson", true);
+ $this->webtestAddContact($firstName, "Anderson", TRUE);
// Get the contact id of the new contact
$contactUrl = $this->parseURL();
$this->type("invoice_id", time());
$this->webtestFillDate('thankyou_date');
-
//Premium section
$this->click("Premium");
$this->waitForElementPresent("fulfilled_date");
}
}
}
-