Example #1
0
 /**
  * @test
  */
 public function getQuantityIsLeavingRangeReturnsOneIfQuantityIsGreaterThanMaximum()
 {
     $minNumber = 5;
     $maxNumber = 10;
     $quantity = 11;
     $this->product = new \Extcode\Cart\Domain\Model\Cart\Product($this->productType, $this->productId, $this->tableId, $this->contentId, $this->sku, $this->title, $this->price, $this->taxClass, $quantity);
     $this->product->setMinNumberInCart($minNumber);
     $this->product->setMaxNumberInCart($maxNumber);
     $this->assertSame(1, $this->product->getQuantityIsLeavingRange());
 }