Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
[change] (PHPLIB-304) Fix tests: Fix ids due to api changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sixer1182 committed May 12, 2020
1 parent 8fb7edb commit 964c354
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/PaymentTypes/InvoiceFactoringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function verifyInvoiceFactoringShipmentWithInvoiceIdOnHeidelpayObject()

// perform shipment
$payment = $charge->getPayment();
$invoiceId = substr(str_replace(['0.',' '], '', microtime(false)), 0, 16);
$invoiceId = 'i' . self::generateRandomId();
$shipment = $this->heidelpay->ship($payment, $invoiceId);
$this->assertNotNull($shipment->getId());
$this->assertEquals($invoiceId, $shipment->getInvoiceId());
Expand Down Expand Up @@ -259,7 +259,7 @@ public function verifyInvoiceFactoringShipmentWithInvoiceIdOnPaymentObject()
$charge = $invoiceFactoring->charge(119.0, 'EUR', self::RETURN_URL, $customer, $basket->getOrderId(), null, $basket);

$payment = $charge->getPayment();
$invoiceId = substr(str_replace(['0.',' '], '', microtime(false)), 0, 16);
$invoiceId = 'i' . self::generateRandomId();
$shipment = $payment->ship($invoiceId);
$this->assertNotNull($shipment->getId());
$this->assertEquals($invoiceId, $shipment->getInvoiceId());
Expand All @@ -282,7 +282,7 @@ public function verifyInvoiceFactoringShipmentWithPreSetInvoiceId()
$customer->setShippingAddress($customer->getBillingAddress());

$basket = $this->createBasket();
$invoiceId = substr(str_replace(['0.',' '], '', microtime(false)), 0, 16);
$invoiceId = 'i' . self::generateRandomId();
$charge = $invoiceFactoring->charge(119.0, 'EUR', self::RETURN_URL, $customer, $basket->getOrderId(), null, $basket, null, $invoiceId);

$payment = $charge->getPayment();
Expand Down

0 comments on commit 964c354

Please sign in to comment.