Skip to content

Commit aa3eb60

Browse files
committed
ACP2E-2978: Saving product by admin user with different role scope overwrites/deletes existing Related product information in the product
1 parent a98a4ab commit aa3eb60

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Initialization

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Initialization/HelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function setUp(): void
151151
->disableOriginalConstructor()
152152
->getMockForAbstractClass();
153153
$productExtensionAttributes = $this->getMockBuilder(ProductExtensionInterface::class)
154-
->onlyMethods(['getCategoryLinks', 'setCategoryLinks'])
154+
->addMethods(['getCategoryLinks', 'setCategoryLinks'])
155155
->getMockForAbstractClass();
156156
$this->productMock->setExtensionAttributes($productExtensionAttributes);
157157

0 commit comments

Comments
 (0)