Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ristokekovic committed Aug 26, 2021
1 parent d8a8746 commit 15906c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function getOrder($orderId, $shippingMethodId = 0, $destinationCountry =
if (!isset(static::$orders[$orderId])) {
$order = new Order();
$order->setId($orderId);
$order->setOrderNumber('testOrderNumber');
$order->setShipment(new Shipment());
$order->setShippingMethodId($shippingMethodId);
$order->setShippingAddress(new Address());
Expand Down
2 changes: 1 addition & 1 deletion tests/BusinessLogic/Order/OrderServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function testPrepareDraftWrongDestinationCountry()
public function testPrepareDraftShippingReference()
{
$draft = $this->orderService->prepareDraft('test');
self::assertEquals($draft->shipmentCustomReference, 'test');
self::assertEquals($draft->shipmentCustomReference, 'testOrderNumber');
}

/**
Expand Down

0 comments on commit 15906c7

Please sign in to comment.