X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FGeneric%2FCheckDashboardTest.php;h=131a9a8904ae4a9073c6d8d813b55b0c620845f5;hb=a953e3e44d504c65ced19fac8c7ab8087d5f2072;hp=0da9ce9ad73faca2c0412591b82a7c74c8742a5a;hpb=4c95b949e863281d990ffa2a3104415079e6352d;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Generic/CheckDashboardTest.php b/tests/phpunit/WebTest/Generic/CheckDashboardTest.php index 0da9ce9ad7..131a9a8904 100644 --- a/tests/phpunit/WebTest/Generic/CheckDashboardTest.php +++ b/tests/phpunit/WebTest/Generic/CheckDashboardTest.php @@ -26,6 +26,10 @@ */ require_once 'CiviTest/CiviSeleniumTestCase.php'; + +/** + * Class WebTest_Generic_CheckDashboardTest + */ class WebTest_Generic_CheckDashboardTest extends CiviSeleniumTestCase { protected function setUp() { @@ -46,6 +50,11 @@ class WebTest_Generic_CheckDashboardTest extends CiviSeleniumTestCase { // More dashlet tests can be added here using the functions modeled below } + /** + * @param $widgetConfigureID + * @param $widgetEnabledSelector + * @param $widgetTitle + */ 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 @@ -88,6 +97,10 @@ class WebTest_Generic_CheckDashboardTest extends CiviSeleniumTestCase { $this->click("xpath=//*[@class='ui-button-text'][contains(text(), 'close')]"); } + /** + * @param $widgetConfigureID + * @param $widgetEnabledSelector + */ function _testRemoveDashboardElement($widgetConfigureID, $widgetEnabledSelector) { $this->click("link=Configure Your Dashboard"); $this->waitForElementPresent("dashlets-header-col-0");