INFRA-132 - settings/ - phpcbf
[civicrm-core.git] / tests / phpunit / WebTest / Activity / StandaloneAddTest.php
index 38f5e06af08b5d1706ce6e60ea2648b828848075..3826f3ae679ea73c4051f1ba4b3a903d53d8b310 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -35,7 +35,7 @@ class WebTest_Activity_StandaloneAddTest extends CiviSeleniumTestCase {
     parent::setUp();
   }
 
-  function testStandaloneActivityAdd() {
+  public function testStandaloneActivityAdd() {
     $this->webtestLogin();
 
     // Adding Anderson, Anthony and Summerson, Samuel for testStandaloneActivityAdd test
@@ -158,13 +158,13 @@ class WebTest_Activity_StandaloneAddTest extends CiviSeleniumTestCase {
     $this->VerifyTabularData(
       array(
         'With Contact' => "Anderson, {$firstName1}",
-        'Assigned To' => "Summerson, {$firstName2}",
+        'Assigned to' => "Summerson, {$firstName2}",
       ),
       "/label"
     );
   }
 
-  function testAjaxCustomGroupLoad() {
+  public function testAjaxCustomGroupLoad() {
     $this->webtestLogin();
     $triggerElement = array('name' => 'activity_type_id', 'type' => 'select');
     $customSets = array(
@@ -180,7 +180,7 @@ class WebTest_Activity_StandaloneAddTest extends CiviSeleniumTestCase {
    * @param $expected
    * @param null $xpathPrefix
    */
-  function VerifyTabularData($expected, $xpathPrefix = NULL) {
+  public function VerifyTabularData($expected, $xpathPrefix = NULL) {
     foreach ($expected as $label => $value) {
         $this->waitForElementPresent("xpath=//table/tbody/tr/td{$xpathPrefix}[text()='{$label}']/../following-sibling::td/span");
         $this->verifyText("xpath=//table/tbody/tr/td{$xpathPrefix}[text()='{$label}']/../following-sibling::td/span", preg_quote($value), 'In line ' . __LINE__);