Merge pull request #4882 from colemanw/CRM-15789
[civicrm-core.git] / tests / phpunit / WebTest / Contact / EditContactTest.php
index 8568f7e8dc189f91cd865aee1ddabbccb9fff4b8..b39909663d330f2cddd96d8f7e6d1d4b8f71ba35 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | 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_Contact_EditContactTest
+ */
 class WebTest_Contact_EditContactTest extends CiviSeleniumTestCase {
   protected function setUp() {
     parent::setUp();
   }
 
-  function testEditContact() {
+  public function testEditContact() {
     // Log in using webtestLogin() method
     $this->webtestLogin();
 
@@ -38,8 +42,8 @@ class WebTest_Contact_EditContactTest extends CiviSeleniumTestCase {
     $firstName = 'WebTest' . substr(sha1(rand()), 0, 7);
     $lastName  = 'ContactEdit' . substr(sha1(rand()), 0, 7);
     $this->openCiviPage("contact/add", "reset=1&ct=Individual");
-    $this->type("first_name",$firstName);
-    $this->type("last_name",$lastName);
+    $this->type("first_name", $firstName);
+    $this->type("last_name", $lastName);
 
     //fill in phone  1
     $this->type("phone_1_phone", "111113333");
@@ -87,7 +91,7 @@ class WebTest_Contact_EditContactTest extends CiviSeleniumTestCase {
     $this->type("phone_2_phone_ext", "111");
     $this->select('phone_2_location_type_id', 'value=3');
 
-     //Edit in phone  3
+    //Edit in phone  3
     $this->type("phone_3_phone", "777777699");
     $this->type("phone_3_phone_ext", "197");
     $this->select('phone_3_location_type_id', 'value=1');