'stateId' =>
$this->
getStateMachineState(OrderTransactionStates::STATE_MACHINE, OrderTransactionStates::STATE_OPEN
),
],
],
$context->
getContext());
/** @var AccountOverviewPageLoadedEvent $event */
$event = null;
$this->
catchEvent(AccountOverviewPageLoadedEvent::
class,
$event);
$page =
$this->
getPageLoader()->
load($request,
$context,
$this->
createCustomer());
static::
assertInstanceOf(AccountOverviewPage::
class,
$page);
$order =
$page->
getNewestOrder();
static::
assertInstanceOf(OrderEntity::
class,
$order);
$transactions =
$order->
getTransactions();
static::
assertCount(2,
$transactions);
$transaction =
$transactions->
last();
static::
assertNotNull($transaction);
static::
assertSame(self::LAST_TRANSACTION_ID,
$transaction->
getId());
self::
assertPageEvent(AccountOverviewPageLoadedEvent::
class,
$event,
$context,
$request,
$page);
} public function testSalesChannelRestriction(): void
{