/** @test */ public function should_set_the_quantity() { $this->product->quantity(5); $this->assertEquals(5, $this->product->quantity); }
/** * Price: £25.00 * Rate: 0% * Quantity: 3 * Freebie: true * Taxable: true * Discount: £0 * Delivery: £0.99 * * @return Product */ public function nine() { $sku = '9'; $name = 'Gift Card'; $rate = new UnitedKingdomValueAddedTax(); $price = new Money(2500, new Currency('GBP')); $product = new Product($sku, $name, $price, $rate); $product->quantity(3); $product->freebie(true); $product->delivery(new Money(99, new Currency('GBP'))); return $product; }