INFRA-132 - settings/ - phpcbf
[civicrm-core.git] / tests / phpunit / WebTest / Export / ExportCiviSeleniumTestCase.php
index 52bbf48ac9a7a8f35f44dc19b7448b4b2c3125e4..a02778755066833fcc49f3acaa29d1e36a962c27 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -34,13 +34,16 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
   /**
    * Download CSV file.
    *
-   * @param string $selector element selector(download button in most of the cases).
-   * @param string  $fileName file name to be download.
-   * @param string $downloadDir download dir.
+   * @param string $selector
+   *   Element selector(download button in most of the cases).
+   * @param string $fileName
+   *   File name to be download.
+   * @param string $downloadDir
+   *   Download dir.
    *
    * @return string downloaded file path.
    */
-  function downloadCSV($selector, $fileName = 'CiviCRM_Contact_Search.csv', $downloadDir = '/tmp') {
+  public function downloadCSV($selector, $fileName = 'CiviCRM_Contact_Search.csv', $downloadDir = '/tmp') {
     // File download path.
     $file = "{$downloadDir}/{$fileName}";
 
@@ -65,10 +68,13 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
   /**
    * Read CSV file and fire provided assertions.
    *
-   * @param string $file         file path of CSV file.
-   * @param array  $checkColumns check first row of csv
+   * @param string $file
+   *   File path of CSV file.
+   * @param array $checkColumns
+   *   Check first row of csv.
    *                              independent of index.
-   * @param array  $checkRows    array of header and rows according to row index
+   * @param array $checkRows
+   *   Array of header and rows according to row index.
    *                              eg: array(
    *                                    1 => array(
       // Row index 1
@@ -82,10 +88,12 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
    *                                      'Last Name'  => 'mayekar'
    *                                    ),
    *                                   );
-   * @param int   $rowCount count rows (excluding header row).
-   * @param array $settings used for override settings.
+   * @param int $rowCount
+   *   Count rows (excluding header row).
+   * @param array $settings
+   *   Used for override settings.
    */
-  function reviewCSV($file, $checkColumns = array(), $checkRows = array(), $rowCount = 0, $settings = array()) {
+  public function reviewCSV($file, $checkColumns = array(), $checkRows = array(), $rowCount = 0, $settings = array()) {
     // Check file exists before proceed.
     $this->assertTrue(($file && file_exists($file)), "Not able to locate {$file}.");
 
@@ -153,4 +161,3 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
     }
   }
 }
-