add autogenerated comment blocks to tests dir
[civicrm-core.git] / tests / phpunit / WebTest / Report / DonarReportTest.php
index abb4a224756ba67817fa74812588989b8174b4dc..24669f882b6cbecd94ac4bd6e4c3952410337dbe 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  +--------------------------------------------------------------------+
 */
 
-
 require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Report_DonarReportTest
+ */
 class WebTest_Report_DonarReportTest extends CiviSeleniumTestCase {
 
   protected function setUp() {
@@ -37,7 +40,7 @@ class WebTest_Report_DonarReportTest extends CiviSeleniumTestCase {
 
     // now create new donar detail report instance
     $this->openCiviPage('report/contribute/detail', 'reset=1', '_qf_Detail_submit');
-    
+
     // preview result
     $this->click("_qf_Detail_submit");
     $this->waitForPageToLoad($this->getTimeoutMsec());
@@ -76,7 +79,7 @@ class WebTest_Report_DonarReportTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText('css=div#Contribute > table.report-layout', $reportName);
 
     // Visit report
-    $this->click("link=$reportName");
+    $this->click("xpath=//div[@id='Contribute']//table/tbody//tr/td/a/strong[text() = '$reportName']");
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
     //now select the criteria