Skip to content

Commit a119247

Browse files
author
Bohdan Korablov
committed
MAGETWO-51754: Fail automated test CreateProductAttributeEntityTest
1 parent a634d49 commit a119247

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsRequired.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public function processAssert(
4747
$productForm->getAttributeElement($attribute)->setValue('');
4848
$catalogProductEdit->getFormPageActions()->save();
4949
$validationErrors = $productForm->getSection($sectionName)->getValidationErrors();
50-
$actualMessage = $validationErrors[$attribute->getFrontendLabel()];
50+
$actualMessage = isset($validationErrors[$attribute->getFrontendLabel()])
51+
? $validationErrors[$attribute->getFrontendLabel()] : '';
5152

5253
\PHPUnit_Framework_Assert::assertEquals(
5354
self::REQUIRE_MESSAGE,

0 commit comments

Comments
 (0)