SalesChannelContextService example


#[Package('buyers-experience')] class SalesChannelContextServiceTest extends TestCase
{
    public function testTokenExpired(): void
    {
        $factory = $this->createMock(SalesChannelContextFactory::class);
        $persister = $this->createMock(SalesChannelContextPersister::class);

        $service = new SalesChannelContextService(
            $factory,
            $this->createMock(CartRuleLoader::class),
            $persister,
            $this->createMock(CartService::class),
            $this->createMock(EventDispatcherInterface::class),
        );

        $persister->method('load')->willReturn(['expired' => true]);

        $expiredToken = Uuid::randomHex();

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