9 use Magento\Customer\Test\Page\CustomerAccountIndex;
10 use Magento\Mtf\Constraint\AbstractConstraint;
23 public function processAssert(CustomerAccountIndex $customerAccountIndex)
25 $customerAccountIndex->open();
26 $defaultBillingAddress = explode(
28 $customerAccountIndex->getDashboardAddress()->getDefaultBillingAddressText()
30 $defaultShippingAddress = explode(
32 $customerAccountIndex->getDashboardAddress()->getDefaultShippingAddressText()
34 $actualAddressesTextValues = [
35 'defaultBillingAddress' => $defaultBillingAddress,
36 'defaultShippingAddress' => $defaultShippingAddress
38 $expectedAddressesTextValues = [
39 'defaultBillingAddress' => [
40 'Default Billing Address',
41 'You have not set a default billing address.',
44 'defaultShippingAddress' => [
45 'Default Shipping Address',
46 'You have not set a default shipping address.',
51 \PHPUnit\Framework\Assert::assertEquals(
52 $expectedAddressesTextValues,
53 $actualAddressesTextValues,
54 'Customer has default shipping/billing address but should not.' 65 return 'Customer does not have default shipping/billing address.';
processAssert(CustomerAccountIndex $customerAccountIndex)