PHP Класс Elcodi\Plugin\CustomShippingBundle\Tests\UnitTest\Provider\ShippingRangesProviderTest

Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
dataGetAllShippingRangesSatisfiedWithCart ( ) Data for testGetAllShippingRangesSatisfiedWithCart
getShippingRange ( ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface Get shipping range prophecy object
testGetAllShippingRangesSatisfiedWithCart ( $withCarrier, $priceFrom, $priceTo, $priceRangePrice, $weightFrom, $weightTo, $weightRangePrice, $currencyConverterMultiplier, $hasResult ) Test getAllShippingRangesSatisfiedWithCart method

Приватные методы

Метод Описание
getBuiltCarrierRepository ( $withCarrier, $priceFrom = null, $priceTo = null, $priceRangePrice, $weightFrom = null, $weightTo = null, $weightRangePrice ) Get functional carrier
getCarrier ( ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface Get carrier prophecy object
getCarrierRepository ( ) : Elcodi\Plugin\CustomShippingBundle\Repository\CarrierRepository Get carrier repository prophecy object
getCart ( ) : Elcodi\Component\Cart\Entity\Interfaces\CartInterface Get cart prophecy object
getCurrency ( ) : Elcodi\Component\Currency\Entity\Currency Get currency
getCurrencyConverter ( float $multiplier ) : Elcodi\Component\Currency\Services\CurrencyConverter Get currency converter prophecy object
getRevealedCart ( ) : Elcodi\Component\Cart\Entity\Interfaces\CartInterface Get cart object
getZoneMatcher ( $match = true ) : Elcodi\Component\Zone\Services\ZoneMatcher Get zone matcher prophecy object

Описание методов

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

Data for testGetAllShippingRangesSatisfiedWithCart

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

Get shipping range prophecy object
public getShippingRange ( ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface
Результат Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface Shipping range

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

Test getAllShippingRangesSatisfiedWithCart method
public testGetAllShippingRangesSatisfiedWithCart ( $withCarrier, $priceFrom, $priceTo, $priceRangePrice, $weightFrom, $weightTo, $weightRangePrice, $currencyConverterMultiplier, $hasResult )