Elcodi\Plugin\CustomShippingBundle\Tests\UnitTest\Provider\ShippingRangesProviderTest::testGetAllShippingRangesSatisfiedWithCart PHP Метод

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

Test getAllShippingRangesSatisfiedWithCart method
public testGetAllShippingRangesSatisfiedWithCart ( $withCarrier, $priceFrom, $priceTo, $priceRangePrice, $weightFrom, $weightTo, $weightRangePrice, $currencyConverterMultiplier, $hasResult )
    public function testGetAllShippingRangesSatisfiedWithCart($withCarrier, $priceFrom, $priceTo, $priceRangePrice, $weightFrom, $weightTo, $weightRangePrice, $currencyConverterMultiplier, $hasResult)
    {
        $shippingCollectEventListener = new ShippingRangesProvider($this->getBuiltCarrierRepository($withCarrier, $priceFrom, $priceTo, $priceRangePrice, $weightFrom, $weightTo, $weightRangePrice)->reveal(), $this->getCurrencyConverter($currencyConverterMultiplier)->reveal(), $this->getZoneMatcher()->reveal());
        $shippingRanges = $shippingCollectEventListener->getAllShippingRangesSatisfiedWithCart($this->getRevealedCart());
        $this->assertCount($hasResult, $shippingRanges);
    }