/**
* @internal
*/
class PaymentMethodPageTest extends TestCase
{ use IntegrationTestBehaviour;
use StorefrontPageTestBehaviour;
public function testItlLoadsTheRequestedCustomersData(): void
{ $request =
new Request();
$context =
$this->
createSalesChannelContextWithLoggedInCustomerAndWithNavigation();
/** @var AccountPaymentMethodPageLoadedEvent $event */
$event = null;
$this->
catchEvent(AccountPaymentMethodPageLoadedEvent::
class,
$event);
$page =
$this->
getPageLoader()->
load($request,
$context);
static::
assertInstanceOf(AccountPaymentMethodPage::
class,
$page);
static::
assertSame(StorefrontPageTestConstants::PAYMENT_METHOD_COUNT,
$page->
getPaymentMethods()->
count());
self::
assertPageEvent(AccountPaymentMethodPageLoadedEvent::
class,
$event,
$context,
$request,
$page);
}