id)->toBe($id) ->and($dto->order_id)->toBe($orderId) ->and($dto->product_name)->toBe($productName) ->and($dto->product_inco_id)->toBe($productIncoId) ->and($dto->product_brand_label)->toBe($productBrandLabel) ->and($dto->is_variable_weight)->toBe($isVariableWeight) ->and($dto->price_kg_ttc)->toBe($priceKgTtc) ->and($dto->quantity)->toBe($quantity) ->and($dto->unit_price)->toBe($unitPrice) ->and($dto->unit_tax)->toBe($unitTax) ->and($dto->unit_discount)->toBe($unitDiscount) ->and($dto->tax_rate)->toBe($taxRate) ->and($dto->unit_price_ttc)->toBe($unitPriceTtc) ->and($dto->unitPriceTtc)->toBe($unitPriceTtc) ->and($dto->unit_price_discounted_ht)->toBe($unitPriceDiscountedHt) ->and($dto->unitPriceDiscountedHt)->toBe($unitPriceDiscountedHt) ->and($dto->total_gross_ht)->toBe($totalGrossHt) ->and($dto->totalGrossHt)->toBe($totalGrossHt) ->and($dto->total_ht)->toBe($totalHt) ->and($dto->total_tax)->toBe($totalTax) ->and($dto->total_discount)->toBe($totalDiscount) ->and($dto->total_ttc)->toBe($totalTtc); expect($dto->toArray())->toBe([ 'id' => $id, 'order_id' => $orderId, 'product_name' => $productName, 'product_inco_id' => $productIncoId, 'product_brand_label' => $productBrandLabel, 'is_variable_weight' => $isVariableWeight, 'price_kg_ttc' => '3938', 'quantity' => $quantity, 'unit_price' => '1969', 'unit_tax' => '108', 'unit_discount' => '0', 'tax_rate' => $taxRate->value, 'unit_price_ttc' => '2077', 'unit_price_discounted_ht' => '1969', 'total_ttc' => '4154', 'total_ht' => '3938', 'total_tax' => '216', 'total_discount' => '0', 'total_gross_ht' => '3938', ]); }); });