static::
assertInstanceOf(AccountEditOrderPage::
class,
$page);
self::
assertPageEvent(AccountEditOrderPageLoadedEvent::
class,
$event,
$context,
$request,
$page);
static::
assertCount(0,
$page->
getPaymentMethods());
} public function testEditPageNotAvailableOrderIsPaid(): void
{ $request =
new Request();
$context =
$this->
createSalesChannelContextWithLoggedInCustomerAndWithNavigation();
$orderId =
$this->
placeRandomOrder($context);
$this->
setOrderToTransactionState($orderId,
$context, StateMachineTransitionActions::ACTION_PAID
);
/** @var AccountEditOrderPageLoader $event */
$event = null;
$this->
catchEvent(AccountEditOrderPageLoader::
class,
$event);
$this->
expectException(OrderException::
class);
$request->request->
set('orderId',
$orderId);
$this->
getPageLoader()->
load($request,
$context);
}