function it_uses_provider_to_get_variants_prices(ProductInterface $product, ProductVariantsPricesProviderInterface $productVariantsPricesProvider)
 {
     $productVariantsPricesProvider->provideVariantsPrices($product)->willReturn([['color' => 'black', 'value' => 1000]]);
     $this->getPrices($product)->shouldReturn([['color' => 'black', 'value' => 1000]]);
 }
 /**
  * @param ProductInterface $product
  *
  * @return array
  */
 public function getPrices(ProductInterface $product)
 {
     return $this->productVariantsPricesProvider->provideVariantsPrices($product);
 }
Exemplo n.º 3
0
 /**
  * @param ProductInterface $product
  * @param ChannelInterface $channel
  *
  * @return array
  */
 public function getPrices(ProductInterface $product, ChannelInterface $channel)
 {
     return $this->productVariantsPricesProvider->provideVariantsPrices($product, $channel);
 }