class OverviewPageTest extends TestCase
{ use IntegrationTestBehaviour;
use StorefrontPageTestBehaviour;
private const LAST_TRANSACTION_ID = '00000000000000000000000000000000';
public function testItLoadsTheOverview(): void
{ $request =
new Request();
$context =
$this->
createSalesChannelContextWithLoggedInCustomerAndWithNavigation();
$orderId =
$this->
placeRandomOrder($context);
$this->
getContainer()->
get('order_transaction.repository'
)->
create([ [ // this id would result in being the first transaction with wrong sorting
'id' => self::LAST_TRANSACTION_ID,
'orderId' =>
$orderId,
'amount' =>
new CalculatedPrice(10.0, 10.0,
new CalculatedTaxCollection(),
new TaxRuleCollection()),
'paymentMethodId' =>
$this->
getValidPaymentMethodId(),
'stateId' =>
$this->
getStateMachineState(OrderTransactionStates::STATE_MACHINE, OrderTransactionStates::STATE_OPEN
),
],
],
$context->
getContext());