Example #1
0
 /**
  * Remove a product from the basket
  *
  * @param string $sku
  * @return void
  */
 public function remove($sku)
 {
     $product = $this->pick($sku);
     $this->products->remove($sku);
 }
Example #2
0
 /** @test */
 public function should_remove_item()
 {
     $this->collection->remove(0);
     $this->assertEquals(4, $this->collection->count());
 }