From: monishdeb Date: Wed, 26 Aug 2015 06:00:20 +0000 (+0530) Subject: format fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=761fe7bbcc389c09068ba52416dd237dd2ad9ca6;p=civicrm-core.git format fixes --- diff --git a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php index c4692a461c..eb27b5909a 100644 --- a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php +++ b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php @@ -2299,7 +2299,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase { // In the case of chainSelect, wait for options to load $this->waitForElementNotPresent('css=select.loading'); if ($multiple) { - foreach((array)$labels as $label) { + foreach ((array) $labels as $label) { $this->clickAt("//*[@id='$fieldName']/../div/ul/li"); $this->keyDown("//*[@id='$fieldName']/../div/ul/li//input", " "); $this->type("//*[@id='$fieldName']/../div/ul/li//input", $label); diff --git a/tests/phpunit/WebTest/Contribute/OnBehalfOfOrganization.php b/tests/phpunit/WebTest/Contribute/OnBehalfOfOrganization.php index 11e62049b0..2a7b1d56d0 100644 --- a/tests/phpunit/WebTest/Contribute/OnBehalfOfOrganization.php +++ b/tests/phpunit/WebTest/Contribute/OnBehalfOfOrganization.php @@ -148,7 +148,7 @@ class WebTest_Contribute_OnBehalfOfOrganization extends CiviSeleniumTestCase { $this->click("_qf_Relationship_upload"); $this->waitForAjaxContent(); - $title = 'Membership Type' . substr(sha1(rand()), 0, 7); + $title = 'Membership Type' . substr(sha1(rand()), 0, 7); //Create membership type $this->openCiviPage("admin/member/membershipType", "reset=1&action=browse"); $this->click("link=Add Membership Type"); @@ -469,7 +469,7 @@ class WebTest_Contribute_OnBehalfOfOrganization extends CiviSeleniumTestCase { /** * @param int $pageId - * @param int $cid + * @param int $orgName * @param $pageTitle */ public function _testAnomoyousOrganization($pageId, $orgName, $pageTitle) { @@ -525,12 +525,13 @@ class WebTest_Contribute_OnBehalfOfOrganization extends CiviSeleniumTestCase { // TODO: webtestVerifyTabularData function is causing timeout error, reason why most of the Webtests are failing // where its been called to assert tabular data - /* + + /** //Find Contribution $this->openCiviPage("contribute/search", "reset=1"); $this->type("sort_name", $orgName['name']); $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']"); - //$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom"); + $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom"); // verify contrb created $expected = array(