Skip to content

Commit 1c6b5b0

Browse files
committed
MC-20425: [Integration Test] Check behavior when attribute set was changed to a new set with deleted attribute from the previous set
1 parent eac9f6b commit 1c6b5b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/_files/attribute_set_based_on_default_without_country_of_manufacture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
$groupAttributes,
4242
function ($attribute) use ($attributeCountryOfManufacture) {
4343
/** @var ProductAttributeInterface $attribute */
44-
return $attribute->getAttributeId() != $attributeCountryOfManufacture->getAttributeId();
44+
return (int)$attribute->getAttributeId() !== (int)$attributeCountryOfManufacture->getAttributeId();
4545
}
4646
);
4747
if (count($newAttributes) < count($groupAttributes)) {

dev/tests/integration/testsuite/Magento/Catalog/_files/product_simple_with_country_of_manufacture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
->setPrice(10)
3030
->setWeight(1)
3131
->setCountryOfManufacture('AO')
32-
->setShortDescription("Short description")
32+
->setShortDescription('Short description')
3333
->setTaxClassId(0)
3434
->setDescription('Description')
3535
->setMetaTitle('meta title')

0 commit comments

Comments
 (0)