9 use Magento\Customer\Test\Page\CustomerAccountIndex;
10 use Magento\Customer\Test\Page\CustomerAccountEdit;
12 use Magento\Mtf\Constraint\AbstractConstraint;
28 CustomerAccountIndex $customerAccountIndex,
29 CustomerAccountEdit $customerAccountEdit,
34 $customerAccountIndex->open();
35 $infoBlock = $customerAccountIndex->getInfoBlock()->getContactInfoContent();
36 $infoBlock = explode(PHP_EOL, $infoBlock);
37 $nameInDashboard = $infoBlock[0];
38 \PHPUnit\Framework\Assert::assertTrue(
39 $nameInDashboard == $customerName,
40 'Customer name in Contact info block is not matching the fixture.' 43 $customerAccountIndex->getInfoBlock()->openEditContactInfo();
44 $nameInEdit = $customerAccountEdit->getAccountInfoForm()->getFirstName()
45 .
" " . $customerAccountEdit->getAccountInfoForm()->getLastName();
46 \PHPUnit\Framework\Assert::assertTrue(
47 $nameInEdit == $customerName,
48 'Customer name on Account info tab is not matching the fixture.' 59 return 'Customer name in Contact information block and Account info is correct.';
processAssert(CustomerAccountIndex $customerAccountIndex, CustomerAccountEdit $customerAccountEdit, Customer $customer)