File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
app/code/Magento/CatalogUrlRewrite Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public function getCategoryProductsUrlRewrites(
139
139
$ mergeDataProvider = clone $ this ->mergeDataProviderPrototype ;
140
140
141
141
/** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection */
142
- $ productCollection = $ this ->productCollectionFactory ->create ();//$category->getProductCollection()
142
+ $ productCollection = $ this ->productCollectionFactory ->create ();
143
143
144
144
$ productCollection ->addCategoriesFilter (['eq ' => [$ category ->getEntityId ()]])
145
145
->setStoreId ($ storeId )
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ public function testGenerationForGlobalScope()
137
137
->setStoreId (3 );
138
138
$ this ->currentUrlRewritesRegenerator ->expects ($ this ->any ())->method ('generate ' )
139
139
->will ($ this ->returnValue ([$ current ]));
140
+ $ this ->currentUrlRewritesRegenerator ->expects ($ this ->any ())->method ('generateAnchor ' )
141
+ ->will ($ this ->returnValue ([$ current ]));
140
142
$ anchorCategories = new \Magento \UrlRewrite \Service \V1 \Data \UrlRewrite ([], $ this ->serializer );
141
143
$ anchorCategories ->setRequestPath ('category-4 ' )
142
144
->setStoreId (4 );
@@ -178,6 +180,8 @@ public function testGenerationForSpecificStore()
178
180
->will ($ this ->returnValue ([]));
179
181
$ this ->currentUrlRewritesRegenerator ->expects ($ this ->any ())->method ('generate ' )
180
182
->will ($ this ->returnValue ([]));
183
+ $ this ->currentUrlRewritesRegenerator ->expects ($ this ->any ())->method ('generateAnchor ' )
184
+ ->will ($ this ->returnValue ([]));
181
185
$ this ->anchorUrlRewriteGenerator ->expects ($ this ->any ())->method ('generate ' )
182
186
->will ($ this ->returnValue ([]));
183
187
You can’t perform that action at this time.
0 commit comments