PHP Class Elcodi\Plugin\CustomShippingBundle\Tests\UnitTest\Provider\ShippingRangesProviderTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: elcodi/bamboo

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

dataGetAllShippingRangesSatisfiedWithCart() public method

Data for testGetAllShippingRangesSatisfiedWithCart

getShippingRange() public method

Get shipping range prophecy object
public getShippingRange ( ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface
return Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface Shipping range

testGetAllShippingRangesSatisfiedWithCart() public method

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