format fixes
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 26 Aug 2015 06:00:20 +0000 (11:30 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Mon, 5 Oct 2015 20:33:09 +0000 (02:03 +0530)
tests/phpunit/CiviTest/CiviSeleniumTestCase.php
tests/phpunit/WebTest/Contribute/OnBehalfOfOrganization.php

index c4692a461c3e9508acdb69c3bd535cbd8e377a31..eb27b5909a75615cb6538cec042a7384a2a6ff8a 100644 (file)
@@ -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);
index 11e62049b0ebdd7ce83636631b31d70806843261..2a7b1d56d0580573d5edc348a39cb30b25b8665d 100644 (file)
@@ -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(