Elcodi\Plugin\CustomShippingBundle\Tests\UnitTest\Provider\ShippingRangesProviderTest::getCart PHP Method

getCart() private method

Cart properties * 10.00 Eur * 10 Kg
private getCart ( ) : Elcodi\Component\Cart\Entity\Interfaces\CartInterface
return Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
    private function getCart()
    {
        $cart = $this->prophesize('Elcodi\\Component\\Cart\\Entity\\Interfaces\\CartInterface');
        $cart->getPurchasableAmount()->willReturn(Money::create(1000, $this->getCurrency()));
        $cart->getWeight()->willReturn(1000);
        $cart->getDeliveryAddress()->willReturn($this->prophesize('Elcodi\\Component\\Geo\\Entity\\Interfaces\\AddressInterface')->reveal());
        return $cart;
    }