getOrderConverter example


    private EventDispatcher $eventDispatcher;

    private CashRoundingConfig $cashRoundingConfig;

    private OrderConverter $orderConverter;

    protected function setUp(): void
    {
        $this->cashRoundingConfig = new CashRoundingConfig(2, 0.01, true);
        $this->eventDispatcher = new EventDispatcher();
        $this->orderConverter = $this->getOrderConverter();
    }

    /** * @dataProvider assembleSalesChannelContextData * * @psalm-param class-string<\Throwable> $exceptionClass */
    public function testAssembleSalesChannelContext(string $exceptionClass, string $manipulateOrder = ''): void
    {
        if ($exceptionClass !== '') {
            static::expectException($exceptionClass);
        }
Home | Imprint | This part of the site doesn't use cookies.