CheckoutCartPageLoader example

new ShippingMethodCollection(),
                null,
                new Criteria(),
                Context::createDefaultContext()
            )
        );

        $route = $this->createMock(ShippingMethodRoute::class);
        $route->method('load')
            ->willReturn($response);

        $loader = new CheckoutCartPageLoader(
            $this->getContainer()->get(GenericPageLoader::class),
            $this->getContainer()->get('event_dispatcher'),
            $this->getContainer()->get(StorefrontCartFacade::class),
            $this->getContainer()->get(PaymentMethodRoute::class),
            $route,
            $this->getContainer()->get(CountryRoute::class)
        );

        $context = $this->createSalesChannelContextWithNavigation();

        $result = $loader->load(new Request()$context);

        
Home | Imprint | This part of the site doesn't use cookies.