LaravelShoppingcart icon indicating copy to clipboard operation
LaravelShoppingcart copied to clipboard

Create test for erase()

Open bumbummen99 opened this issue 4 years ago • 1 comments

The Cart::erase() method has no unit test affecting coverage and production security. The Cart::erase() method should have a unit test verifying its functionality.

To verify:

  • Create Cart with known instance id
  • Add item to Cart
  • Store Cart
  • Erase Cart
  • Restore Cart
  • Verify that Cart is empty.
  • (Optional) Verify that database is empty

bumbummen99 avatar Jan 10 '20 10:01 bumbummen99