StorefrontCartFacade example

$cartService = static::createMock(CartService::class);
        $cartService
            ->expects(static::once())
            ->method('getCart')
            ->with(
                'token',
                static::isInstanceOf(SalesChannelContext::class),
                false,
                true
            );

        $cartFacade = new StorefrontCartFacade(
            $cartService,
            static::createMock(BlockedShippingMethodSwitcher::class),
            static::createMock(BlockedPaymentMethodSwitcher::class),
            static::createMock(ContextSwitchRoute::class),
            static::createMock(CartCalculator::class),
            static::createMock(AbstractCartPersister::class),
        );

        $cartFacade->get(
            'token',
            static::createMock(SalesChannelContext::class),
            
Home | Imprint | This part of the site doesn't use cookies.