INFRA-132 - tests/ - phpcbf
[civicrm-core.git] / tests / phpunit / WebTest / Member / StandaloneAddTest.php
index bd51f8c4a765803e976e3544d420c5d7627a0f1a..d719d4287dcfd4f2c74ff7e04f4b9cbf61803fe3 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_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     parent::setUp();
   }
 
-  function testStandaloneMemberAdd() {
+  public function testStandaloneMemberAdd() {
 
     $this->webtestLogin();
 
@@ -88,7 +88,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     $this->webtestVerifyTabularData($expected);
   }
 
-  function testStandaloneGiftMembership() {
+  public function testStandaloneGiftMembership() {
 
     $this->webtestLogin();
 
@@ -125,11 +125,11 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     // add softcredit details
     $totalAmount = 100;
     $financialType = 'Donation';
-    $this->clickLink('is_different_contribution_contact','total_amount',FALSE);
+    $this->clickLink('is_different_contribution_contact', 'total_amount', FALSE);
 
     $this->select('soft_credit_type_id', 'Gift');
     $this->select2('soft_credit_contact_id', $giftMembercontactName);
-    $this->select('financial_type_id','Donation');
+    $this->select('financial_type_id', 'Donation');
     $this->type('total_amount', $totalAmount);
     $this->select('payment_instrument_id', 'Check');
     $this->select('contribution_status_id', 'Completed');
@@ -156,7 +156,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
 
   }
 
-  function testStandaloneMemberOverrideAdd() {
+  public function testStandaloneMemberOverrideAdd() {
 
     $this->webtestLogin();
 
@@ -198,7 +198,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     // fill in Record Membership Payment?
     $this->click("record_contribution", "value=1");
     $this->waitForElementPresent("contribution_status_id");
-      // let financial type be default
+    // let financial type be default
 
     // let the amount be default
 
@@ -235,7 +235,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     $this->webtestVerifyTabularData($expected);
   }
 
-  function testAjaxCustomGroupLoad() {
+  public function testAjaxCustomGroupLoad() {
     $this->webtestLogin();
     $triggerElement = array('name' => 'membership_type_id_1', 'type' => 'select');
     $customSets = array(
@@ -250,7 +250,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     $test = $this;
     $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl,
       function() use ($test) {
-        $test->select('membership_type_id_0', 'value=1');
+      $test->select('membership_type_id_0', 'value=1');
       }
     );
   }