9 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 use Magento\Mtf\Fixture\FixtureInterface;
27 $actualMessage = $productPage->getMessagesBlock()->getNoticeMessage();
28 $reg =
'/(SKU for product ' .
$product->getName() .
' has been changed to ' .
$product->getSku() .
'-)(\d+.$)/';
29 \PHPUnit\Framework\Assert::assertTrue(
30 preg_match($reg, $actualMessage) == 1,
31 'Incorrect notice that existing sku automatically changed when saving product with same sku.' 42 return 'Notice that existing sku automatically changed when saving product with same sku is correct.';
processAssert(CatalogProductEdit $productPage, FixtureInterface $product)