spec\Sylius\Bundle\CoreBundle\Templating\Helper\ProductVariantsPricesHelperSpec::it_uses_provider_to_get_variants_prices PHP Метод

it_uses_provider_to_get_variants_prices() публичный Метод

public it_uses_provider_to_get_variants_prices ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Core\Model\ProductInterface $product, Sylius\Component\Core\Provider\ProductVariantsPricesProviderInterface $productVariantsPricesProvider )
$channel Sylius\Component\Core\Model\ChannelInterface
$product Sylius\Component\Core\Model\ProductInterface
$productVariantsPricesProvider Sylius\Component\Core\Provider\ProductVariantsPricesProviderInterface
    function it_uses_provider_to_get_variants_prices(ChannelInterface $channel, ProductInterface $product, ProductVariantsPricesProviderInterface $productVariantsPricesProvider)
    {
        $productVariantsPricesProvider->provideVariantsPrices($product, $channel)->willReturn([['color' => 'black', 'value' => 1000]]);
        $this->getPrices($product, $channel)->shouldReturn([['color' => 'black', 'value' => 1000]]);
    }