Merge pull request #4882 from colemanw/CRM-15789
[civicrm-core.git] / tests / phpunit / WebTest / Contact / EditContactTest.php
index 2898db375a24bced4672ebd55c43d5f03dd12d57..b39909663d330f2cddd96d8f7e6d1d4b8f71ba35 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -34,7 +34,7 @@ class WebTest_Contact_EditContactTest extends CiviSeleniumTestCase {
     parent::setUp();
   }
 
-  function testEditContact() {
+  public function testEditContact() {
     // Log in using webtestLogin() method
     $this->webtestLogin();
 
@@ -42,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");
@@ -91,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');