Merge pull request #4903 from colemanw/INFRA-132
[civicrm-core.git] / tests / phpunit / WebTest / Event / TellAFriendTest.php
index 7ac922af6285321ca0c248b2ff616c6a71faadda..eb5661f93a769e57b5ae4f42cdc3a6fd6f5736fd 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_Event_TellAFriendTest extends CiviSeleniumTestCase {
     parent::setUp();
   }
 
-  function testAddEvent() {
+  public function testAddEvent() {
     // Log in using webtestLogin() method
     $this->webtestLogin('admin');
 
@@ -75,7 +75,7 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase {
     $this->open($registerUrl);
     $this->waitForElementPresent('_qf_Register_upload-bottom');
 
-    $firstName = 'Jane' .substr(sha1(rand()), 0, 7);
+    $firstName = 'Jane' . substr(sha1(rand()), 0, 7);
     $lastName = 'Doe' . substr(sha1(rand()), 0, 7);
     $this->type('first_name', "$firstName");
     $this->type('last_name', "$lastName");
@@ -173,7 +173,7 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase {
    * @param $eventTitle
    * @param $eventDescription
    */
-  function _testAddEventInfo($eventTitle, $eventDescription) {
+  public function _testAddEventInfo($eventTitle, $eventDescription) {
     $this->waitForElementPresent("_qf_EventInfo_upload-bottom");
 
     $this->select("event_type_id", "value=1");
@@ -201,7 +201,7 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase {
   /**
    * @param $streetAddress
    */
-  function _testAddLocation($streetAddress) {
+  public function _testAddLocation($streetAddress) {
     // Wait for Location tab form to load
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->waitForElementPresent("_qf_Location_upload-bottom");
@@ -226,7 +226,7 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase {
    * @param $registerIntro
    * @param bool $multipleRegistrations
    */
-  function _testAddOnlineRegistration($registerIntro, $multipleRegistrations = FALSE) {
+  public function _testAddOnlineRegistration($registerIntro, $multipleRegistrations = FALSE) {
     // Go to Online Registration tab
     $this->click("link=Online Registration");
     $this->waitForElementPresent("_qf_Registration_upload-bottom");
@@ -256,7 +256,7 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase {
    * @param $thankYouMsg
    * @param $eventTitle
    */
-  function _testAddTellAFriend($subject, $thankYouMsg, $eventTitle) {
+  public function _testAddTellAFriend($subject, $thankYouMsg, $eventTitle) {
     // Go to Tell A Friend Tab
     $this->click('link=Tell a Friend');
     $this->waitForElementPresent('_qf_Event_cancel-bottom');
@@ -276,4 +276,3 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("xpath=//div[@id='event_status_id']//div[@id='option11_wrapper']/table/tbody//tr/td[1]/a[text()='$eventTitle']");
   }
 }
-