Skip to content

Commit 1128899

Browse files
committed
ACP2E-1754: Store level URL rewrites are removed after product import
1 parent 498c7ab commit 1128899

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/CatalogUrlRewrite/Test/Unit/Observer/AfterImportDataObserverTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ public function testAfterImportData()
420420
$this->attributeValue->expects($this->once())
421421
->method('getValuesMultiple')
422422
->with(ProductInterface::class, [0], [ProductAttributeInterface::CODE_SEO_FIELD_URL_KEY], [1]);
423+
$this->scopeConfig->expects($this->once())
424+
->method('getValue')
425+
->with('catalog/seo/generate_category_product_rewrites')
426+
->willReturn(true);
423427
$this->import->execute($this->observer);
424428
}
425429

0 commit comments

Comments
 (0)