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

Commit

Permalink
Merge pull request #2 from GFG/crossdocking
Browse files Browse the repository at this point in the history
master < Added crossdocking fields into item dto.
  • Loading branch information
lerox committed Jul 28, 2016
2 parents 08c4ab7 + 9385fc0 commit 549c416
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/DTOMarketplace/Context/Partner/Order/Create.php
Expand Up @@ -59,7 +59,9 @@ public function exportContextData()
$itemCollection[] = [
'id' => $item->getId(),
'sku' => $item->getSku(),
'price' => $item->getPrice()
'price' => $item->getPrice(),
'shipment_type' => $item->getShipmentType(),
'supplier_delivery_time' => $item->getSupplierDeliveryTime(),
];
}

Expand Down
Expand Up @@ -29,12 +29,16 @@ public function testExportContextData()
$id = 1;
$price = 10.00;
$idSalesOrderItem = 1;
$supplierDeliveryTime = 321;
$shipmentType = 222;

//items
$item = Mock::create('GFG\DTOMarketplace\DataWrapper\Order\Item', $this);
$item->method('getId')->willReturn($idSalesOrderItem);
$item->method('getSku')->willReturn($sku);
$item->method('getPrice')->willReturn($price);
$item->method('getShipmentType')->willReturn($shipmentType);
$item->method('getSupplierDeliveryTime')->willReturn($supplierDeliveryTime);

$itemCollection = [$item];

Expand Down Expand Up @@ -148,7 +152,9 @@ public function testExportContextData()
0 =>[
'id' => $idSalesOrderItem,
'sku' => $sku,
'price' => $price
'price' => $price,
'shipment_type' => $shipmentType,
'supplier_delivery_time' => $supplierDeliveryTime,
],
],
'customer' => $customer,
Expand Down

0 comments on commit 549c416

Please sign in to comment.