Ejemplo n.º 1
0
 /**
  * @test
  */
 public function removeSpecialPriceRemovesSpecialPrice()
 {
     $price = 10.0;
     $specialPrice = new \Extcode\Cart\Domain\Model\Product\SpecialPrice();
     $specialPrice->setPrice($price);
     $this->product->addSpecialPrice($specialPrice);
     $this->product->removeSpecialPrice($specialPrice);
     $this->assertEmpty($this->product->getSpecialPrices());
 }