public function testGetPrice() { $pricing = $this->dummyData->getPricing(); $product = new Product(); $product->setQuantity(1); $this->assertTrue($product->getPrice($pricing) instanceof Price); }
/** * @param PricingInterface $pricing * @return static */ public function withPrice(PricingInterface $pricing) { $this->entityDTO->price = $this->dtoBuilderFactory->getPriceDTOBuilder($this->entity->getPrice($pricing))->withAllData()->build(); return $this; }