public function testCreate()
 {
     $pricing = $this->dummyData->getPricing();
     $this->productQuantityDiscount->setCustomerGroup(null);
     $this->productQuantityDiscount->setQuantity(6);
     $this->productQuantityDiscount->setFlagApplyCatalogPromotions(true);
     $this->assertEntityValid($this->productQuantityDiscount);
     $this->assertSame(null, $this->productQuantityDiscount->getCustomerGroup());
     $this->assertSame(6, $this->productQuantityDiscount->getQuantity());
     $this->assertSame(true, $this->productQuantityDiscount->getFlagApplyCatalogPromotions());
     $this->assertSame($this->product, $this->productQuantityDiscount->getProduct());
     $this->assertTrue($this->productQuantityDiscount->getPrice($pricing) instanceof Price);
 }
 protected function preBuild()
 {
     $this->entityDTO->customerGroup = $this->entity->getCustomerGroup();
     $this->entityDTO->quantity = $this->entity->getQuantity();
     $this->entityDTO->flagApplyCatalogPromotions = $this->entity->getFlagApplyCatalogPromotions();
 }