Example #1
0
 /** @test */
 public function should_set_the_freebie_status()
 {
     $this->product->freebie(true);
     $this->assertTrue($this->product->freebie);
 }
Example #2
0
 /**
  * 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;
 }