<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- function testCheckDashboardElements() {
+ public function testCheckDashboardElements() {
$this->webtestLogin();
* @param $widgetEnabledSelector
* @param $widgetTitle
*/
- function _testAddDashboardElement($widgetConfigureID, $widgetEnabledSelector, $widgetTitle) {
+ public function _testAddDashboardElement($widgetConfigureID, $widgetEnabledSelector, $widgetTitle) {
// Check if desired widget is already loaded on dashboard and remove it if it is so we can test adding it.
// Because it tends to cause problems, all uses of sleep() must be justified in comments
// Sleep should never be used for wait for anything to load from the server
* @param int $widgetConfigureID
* @param $widgetEnabledSelector
*/
- function _testRemoveDashboardElement($widgetConfigureID, $widgetEnabledSelector) {
+ public function _testRemoveDashboardElement($widgetConfigureID, $widgetEnabledSelector) {
$this->click("link=Configure Your Dashboard");
$this->waitForElementPresent("dashlets-header-col-0");
$this->mouseDownAt("{$widgetConfigureID}", "");
$this->assertFalse($this->isElementPresent($widgetEnabledSelector));
}
- function _testActivityDashlet() {
+ public function _testActivityDashlet() {
// Add an activity that will show up in the widget
$this->WebtestAddActivity();
$widgetTitle = "Activities";
$this->_testRemoveDashboardElement($widgetConfigureID, $widgetEnabledSelector);
}
}
-