Merge pull request #5060 from eileenmcnaughton/api-comment-fixes
[civicrm-core.git] / tests / phpunit / WebTest / Activity / AddRecurringActivityTest.php
index e98a8dbd203cfc656fda3e3866acc3adee963f71..13fd85aaa73572c61ce1856750ff6d767fcd8b4d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Description of AddRecurringActivityTest
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
+/**
+ * Class WebTest_Activity_AddRecurringActivityTest
+ */
 class WebTest_Activity_AddRecurringActivityTest extends CiviSeleniumTestCase {
 
   protected function setUp() {
     parent::setUp();
   }
 
-  function testRecurringActivity() {
+  public function testRecurringActivity() {
     $this->webtestLogin();
 
     //Adding new contact
@@ -62,10 +65,9 @@ class WebTest_Activity_AddRecurringActivityTest extends CiviSeleniumTestCase {
 
     // ...need to use mouseDownAt on first result (which is a li element), click does not work
     $this->clickAt("xpath=//div[@class='select2-result-label']");
-    $this->waitForText("xpath=//div[@id='s2id_target_contact_id']","$contact1");
+    $this->waitForText("xpath=//div[@id='s2id_target_contact_id']", "$contact1");
     $this->assertElementContainsText("xpath=//div[@id='s2id_target_contact_id']", "Karan, $contact1", 'Contact not found in line ' . __LINE__);
 
-
     //Assigned To field
     $this->click("xpath=//div[@id='s2id_assignee_contact_id']/ul/li/input");
     $this->keyDown("xpath=//div[@id='s2id_assignee_contact_id']/ul/li/input", " ");
@@ -79,7 +81,7 @@ class WebTest_Activity_AddRecurringActivityTest extends CiviSeleniumTestCase {
     $this->clickAt("xpath=//div[@class='select2-result-label']");
 
     // ...again, waiting for the box with contact name to show up...
-    $this->waitForText("xpath=//div[@id='s2id_assignee_contact_id']","$contact2");
+    $this->waitForText("xpath=//div[@id='s2id_assignee_contact_id']", "$contact2");
 
     // ...and verifying if the page contains properly formatted display name for chosen contact.
     $this->assertElementContainsText("xpath=//div[@id='s2id_assignee_contact_id']", "Jane, $contact2", 'Contact not found in line ' . __LINE__);