From 761fe7bbcc389c09068ba52416dd237dd2ad9ca6 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 26 Aug 2015 11:30:20 +0530 Subject: [PATCH] format fixes --- tests/phpunit/CiviTest/CiviSeleniumTestCase.php | 2 +- .../WebTest/Contribute/OnBehalfOfOrganization.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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( -- 2.25.1