subDay(); $orderableEnd = CarbonImmutable::now()->addDay(); $hasInco = true; // WHEN $entity = new Product( $id, $price, $taxRate, $weight, $invoicingUnit, $sellUnit, $discount, $status, $orderableStart, $orderableEnd, $hasInco ); // THEN expect($entity->id())->toBe($id) ->and($entity->price)->toBe($price) ->and($entity->tax_rate)->toBe($taxRate) ->and($entity->product_weight)->toBe($weight) ->and($entity->invoicing_unit)->toBe($invoicingUnit) ->and($entity->sell_unit)->toBe($sellUnit) ->and($entity->validDiscount)->toBe($discount) ->and($entity->status)->toBe($status) ->and($entity->orderable_start)->toBe($orderableStart) ->and($entity->orderable_end)->toBe($orderableEnd) ->and($entity->hasInco)->toBe($hasInco); }); });