/** * @test */ public function getQuantityIsInRangeReturnsFalseIfQuantityIsGreaterThanMaximum() { $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->assertFalse($this->product->getQuantityIsInRange()); }