From 5b7d17f33308b7164ec165dc059c9bd0bfaf32ea Mon Sep 17 00:00:00 2001 From: sixer1182 Date: Thu, 8 Aug 2019 17:32:19 +0200 Subject: [PATCH] [change] Simplify unit tests. --- test/unit/HeidelpayTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/HeidelpayTest.php b/test/unit/HeidelpayTest.php index 1dc7d343..5ad5afc8 100755 --- a/test/unit/HeidelpayTest.php +++ b/test/unit/HeidelpayTest.php @@ -311,14 +311,14 @@ public function heidelpayShouldForwardPaymentActionCallsToThePaymentServiceDP(): $customerId = 'customerId'; $paymentId = 'paymentId'; $chargeId = 'chargeId'; - $customer = (new Customer())->setId('123'); + $customer = new Customer(); $sofort = new Sofort(); - $metadata = (new Metadata())->setId('123'); + $metadata = new Metadata(); $payment = new Payment(); $authorization = new Authorization(); $charge = new Charge(); $paypage = new Paypage(123.1234, 'EUR', 'url'); - $basket = (new Basket())->setId('123'); + $basket = new Basket(); return [ 'auth' => ['authorize', [1.234, 'AFN', $sofort, $url, $customer, $orderId, $metadata], 'authorize', [1.234, 'AFN', $sofort, $url, $customer, $orderId, $metadata]],