function it_uses_helper_to_get_variants_prices(ProductInterface $product, ProductVariantsPricesHelper $productVariantsPricesHelper) { $productVariantsPricesHelper->getPrices($product)->willReturn([['color' => 'purple', 'value' => 12345]]); $this->getVariantsPrices($product)->shouldReturn([['color' => 'purple', 'value' => 12345]]); }
/** * @param ProductInterface $product * * @return array */ public function getVariantsPrices(ProductInterface $product) { return $this->productVariantsPricesHelper->getPrices($product); }