Exemple #1
0
 public function testDeleteCartItem()
 {
     $cartItem = $this->dummyData->getCartItem(null, 1);
     $cart = new Cart();
     $cart->addCartItem($cartItem);
     $this->assertSame(1, $cart->totalItems());
     $cart->deleteCartItem($cartItem);
     $this->assertSame(0, $cart->totalItems());
 }