Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jekabs Aizpurvs committed Aug 27, 2024
1 parent 9a7451f commit 0663c74
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,13 @@ public function testAddOrderItemsAdjustmentAddition()
*/
private function getOrderItemCreate(int $unitAmount, int $amount, string $currencyCode): OrderItemCreate
{
$type = $amount > 0
? OrderItemsRequestBuilderInterface::TYPE_SURCHARGE
: OrderItemsRequestBuilderInterface::TYPE_DISCOUNT;

$orderItemCreate = $this->objectManager->create(OrderItemCreate::class);
$orderItemCreate->setItemId(2);
$orderItemCreate->setType(OrderItemsRequestBuilderInterface::TYPE_SURCHARGE);
$orderItemCreate->setType($type);
$orderItemCreate->setSku(OrderItemsRequestBuilderInterface::ITEM_ADJUSTMENT_FEE_SKU);
$orderItemCreate->setName('CM Adjustment Fee');
$orderItemCreate->setDescription('CM Adjustment Fee');
Expand Down

0 comments on commit 0663c74

Please sign in to comment.