'password' => 'shopware',
] );
$response =
$this->browser->
getResponse();
$contextToken =
$response->headers->
get(PlatformRequest::HEADER_CONTEXT_TOKEN
) ?? '';
static::
assertNotEmpty($contextToken);
$this->browser->
setServerParameter('HTTP_SW_CONTEXT_TOKEN',
$contextToken);
$this->paymentMethodChangedEventResult = null;
$this->
catchEvent(OrderPaymentMethodChangedEvent::
class,
$this->paymentMethodChangedEventResult
);
$this->paymentMethodChangedCriteriaEventResult = null;
$this->
catchEvent(OrderPaymentMethodChangedCriteriaEvent::
class,
$this->paymentMethodChangedCriteriaEventResult
);
$this->transactionStateEventResult = null;
$this->
catchEvent(StateMachineTransitionEvent::
class,
$this->transactionStateEventResult
);
} public function testSetPaymentMethodOwnOrderOtherPaymentMethodOpen(): void
{ $this->
sendValidRequest($this->ids->
get('order-1'
),
$this->
getAvailablePaymentMethodId(1
));