Skip to content

Commit

Permalink
Update CartItemOptionTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Jul 30, 2024
1 parent 530db37 commit 9798f49
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@
$cart->storeItem($product1);

// Set options
$cart->setOption($option);
$cart->items()->first()->setOption('size', 34);

// DB Assertions
assertDatabaseCount('cart_items', 1);
\Pest\Laravel\assertDatabaseHas('cart_items', ['options' => $cart->items()->first()->getOption('size')]);
});

0 comments on commit 9798f49

Please sign in to comment.