public function testCreateDefaults()
 {
     $product = $this->dummyData->getProduct();
     $cartPriceRuleDiscount = new CartPriceRuleDiscount($product);
     $this->assertSame(1, $cartPriceRuleDiscount->getQuantity());
     $this->assertSame($product, $cartPriceRuleDiscount->getProduct());
     $this->assertSame(null, $cartPriceRuleDiscount->getCartPriceRule());
 }
 /**
  * @return static
  */
 public function withProduct()
 {
     $this->entityDTO->product = $this->dtoBuilderFactory->getProductDTOBuilder($this->entity->getProduct())->withTags()->build();
     return $this;
 }