Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 566cc7f

Browse files
committed
GITHUB-8970: Cannot assign products to categories not under tree root.
1 parent 550434e commit 566cc7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/ProductScopeRewriteGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function testGenerationForGlobalScope()
120120
$product->expects($this->any())->method('getStoreIds')->will($this->returnValue([1]));
121121
$this->storeViewService->expects($this->once())->method('doesEntityHaveOverriddenUrlKeyForStore')
122122
->will($this->returnValue(false));
123-
$this->categoryMock->expects($this->exactly(2))
123+
$this->categoryMock->expects($this->once())
124124
->method('getParentId')
125125
->willReturn(2);
126126
$this->initObjectRegistryFactory([]);

0 commit comments

Comments
 (0)