9 use Magento\Customer\Test\Page\Adminhtml\CustomerIndex;
10 use Magento\Mtf\Constraint\AbstractConstraint;
20 const ERROR_SAVE_MESSAGE =
'A customer with the same email address already exists in an associated website.';
30 $actualMessage = $customerIndexPage->getMessagesBlock()->getErrorMessage();
31 \PHPUnit\Framework\Assert::assertEquals(
32 self::ERROR_SAVE_MESSAGE,
34 'Wrong error message is displayed.' 35 .
"\nExpected: " . self::ERROR_SAVE_MESSAGE
36 .
"\nActual: " . $actualMessage
47 return 'Assert that error duplicated message is displayed.';
processAssert(CustomerIndex $customerIndexPage)