Merge pull request #15503 from magnolia61/Generalize_Thank_You_in_Message_Templates
[civicrm-core.git] / tests / phpunit / CRM / Core / PaymentTest.php
index f9ac7c7231b354c29e4c656da2e24961df4d6c0b..d1da1b01542e09a4685ed0977c571463210caaa4 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -35,14 +35,14 @@ class CRM_Core_PaymentTest extends CiviUnitTestCase {
    * Test the payment method is adequately logged - we don't expect the processing to succeed
    */
   public function testHandlePaymentMethodLogging() {
-    $params = array('processor_name' => 'Paypal', 'data' => 'blah');
+    $params = ['processor_name' => 'Paypal', 'data' => 'blah'];
     try {
       CRM_Core_Payment::handlePaymentMethod('method', $params);
     }
     catch (Exception $e) {
 
     }
-    $log = $this->callAPISuccess('SystemLog', 'get', array());
+    $log = $this->callAPISuccess('SystemLog', 'get', []);
     $this->assertEquals('payment_notification processor_name=Paypal', $log['values'][$log['id']]['message']);
   }