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

getCart() приватный Метод

Cart properties * 10.00 Eur * 10 Kg
private getCart ( ) : Elcodi\Component\Cart\Entity\Interfaces\CartInterface
Результат 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;
    }