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