9 use Magento\Customer\Test\Fixture\Address;
10 use Magento\Customer\Test\Page\CustomerAccountIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
27 $customerAccountIndex->getAccountMenuBlock()->openMenuItem(
'My Account');
29 $defaultBillingAddress = explode(
31 $customerAccountIndex->getDashboardAddress()->getDefaultBillingAddressText()
33 $defaultShippingAddress = explode(
35 $customerAccountIndex->getDashboardAddress()->getDefaultShippingAddressText()
38 $billingDataDiff = $this->
verifyForm($pattern, $defaultBillingAddress);
39 $shippingDataDiff = $this->
verifyForm($pattern, $defaultShippingAddress);
40 $dataDiff = array_merge($billingDataDiff, $shippingDataDiff);
42 \PHPUnit\Framework\Assert::assertEmpty(
44 'Billing or shipping form was filled incorrectly.' 45 .
"\nLog:\n" . implode(
";\n", $dataDiff)
56 return 'Default billing and shipping address form is correct.';
71 $errorMessages[] =
"Data '$value' in fields is not found.";
74 return $errorMessages;
87 $region = $regionId ? $regionId :
$address->getRegion();
makeAddressPattern(Address $address)
verifyForm(array $pattern, array $address)
processAssert(CustomerAccountIndex $customerAccountIndex, Address $address)