INFRA-132 - tests/ - PHPStorm cleanup
[civicrm-core.git] / tests / phpunit / CiviTest / PaypalPro.php
index eeb2fd71f8503426f18c12eba0e4e2aac8b9ead8..b150a26eddc810c2747ac696012fbbebf9f4b8b7 100644 (file)
@@ -1,16 +1,20 @@
 <?php
 require_once "CRM/Financial/DAO/PaymentProcessor.php";
+
+/**
+ * Class PaypalPro
+ */
 class PaypalPro extends PHPUnit_Framework_Testcase {
   /**
    * Helper function to create
    * a payment processor of type Paypal Pro
    *
-   * @return $paymentProcessor id of created payment processor
-   * @todo this appears not to be working but because it doesn't extend the test class
+   * @return int
+   *   $paymentProcessor id of created payment processor@todo this appears not to be working but because it doesn't extend the test class
    * callAPISuccess won't work
    * I have duplicated this on the main test class as a work around
    */
-  static function create() {
+  public static function create() {
 
     $paymentProcessor = new CRM_Financial_DAO_PaymentProcessor();
     $paymentParams = array(
@@ -38,11 +42,13 @@ class PaypalPro extends PHPUnit_Framework_Testcase {
   /**
    * Helper function to delete a PayPal Pro
    * payment processor
-   * @param  int $id - id of the PayPal Pro payment processor
+   * @param int $id
+   *   Id of the PayPal Pro payment processor.
    * to be deleted
-   * @return boolean true if payment processor deleted, false otherwise
+   * @return boolean
+   *   true if payment processor deleted, false otherwise
    */
-  static function delete($id) {
+  public static function delete($id) {
     $pp = new CRM_Financial_DAO_PaymentProcessor();
     $pp->id = $id;
     if ($pp->find(TRUE)) {