<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- function testStandaloneActivityAdd() {
+ public function testStandaloneActivityAdd() {
$this->webtestLogin();
// Adding Anderson, Anthony and Summerson, Samuel for testStandaloneActivityAdd test
$this->VerifyTabularData(
array(
'With Contact' => "Anderson, {$firstName1}",
- 'Assigned To' => "Summerson, {$firstName2}",
+ 'Assigned to' => "Summerson, {$firstName2}",
),
"/label"
);
}
- function testAjaxCustomGroupLoad() {
+ public function testAjaxCustomGroupLoad() {
$this->webtestLogin();
$triggerElement = array('name' => 'activity_type_id', 'type' => 'select');
$customSets = array(
* @param $expected
* @param null $xpathPrefix
*/
- function VerifyTabularData($expected, $xpathPrefix = NULL) {
+ public function VerifyTabularData($expected, $xpathPrefix = NULL) {
foreach ($expected as $label => $value) {
$this->waitForElementPresent("xpath=//table/tbody/tr/td{$xpathPrefix}[text()='{$label}']/../following-sibling::td/span");
$this->verifyText("xpath=//table/tbody/tr/td{$xpathPrefix}[text()='{$label}']/../following-sibling::td/span", preg_quote($value), 'In line ' . __LINE__);