processRecurring example

$processor = new PaymentRecurringProcessor(
            $repo,
            $this->createMock(InitialStateIdLoader::class),
            $this->createMock(OrderTransactionStateHandler::class),
            $this->createMock(PaymentHandlerRegistry::class),
            new PaymentTransactionStructFactory(),
            $dispatcher,
        );

        static::expectException(OrderException::class);

        $processor->processRecurring($orderId, Context::createDefaultContext());
    }

    public function testOrderNotFoundException(): void
    {
        $repo = $this->createMock(EntityRepository::class);
        $repo
            ->expects(static::once())
            ->method('search')
            ->willReturn(new EntitySearchResult('order', 0, new OrderCollection(), null, new Criteria(), Context::createDefaultContext()));

        $dispatcher = $this->createMock(EventDispatcherInterface::class);
        
Home | Imprint | This part of the site doesn't use cookies.