publicfunctiontestSetAnotherPaymentMethodToOrder(): void { if(!$this->getContainer()->has(AccountOrderController::class)){ // ToDo: NEXT-16882 - Reactivate tests again
static::markTestSkipped('Order mail tests should be fixed without storefront in NEXT-16882'); }
use Shopware\Core\Framework\App\Hmac\Guzzle\AuthMiddleware; use Shopware\Core\Framework\App\Payment\Response\RefundResponse; use Shopware\Core\Framework\Feature;
/**
* Sorts the selected payment method first
* If a different default payment method is defined, it will be sorted second
* All other payment methods keep their respective sorting
*/ publicfunctionsortPaymentMethodsByPreference(SalesChannelContext $context): void { $ids = array_merge( [$context->getPaymentMethod()->getId(), $context->getSalesChannel()->getPaymentMethodId()], $this->getIds() );