Skip to content

Commit ab1cb7b

Browse files
committed
MAGETWO-60154: [Backport] Saving category deletes UrlRewrites for subcategories and all products in them - for 2.1.x
1 parent 1cda6ea commit ab1cb7b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

app/code/Magento/CatalogUrlRewrite/Model/ProductScopeRewriteGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function isCategoryProperForGenerating(Category $category, $storeId)
236236
* Checks if URL key has been changed for provided category and returns reloaded category,
237237
* in other case - returns provided category.
238238
*
239-
* @param $storeId
239+
* @param int $storeId
240240
* @param Category $category
241241
* @return Category
242242
*/

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ public function setUp()
3939

4040
public function testGenerationWithGlobalScope()
4141
{
42-
$categoryMock = $this->getMockBuilder(Category::class)
43-
->disableOriginalConstructor()
44-
->getMock();
4542
$categoryCollectionMock = $this->getMockBuilder(Collection::class)
4643
->disableOriginalConstructor()
4744
->getMock();
@@ -79,9 +76,6 @@ public function testGenerationWithGlobalScope()
7976

8077
public function testGenerationWithSpecificStore()
8178
{
82-
$categoryMock = $this->getMockBuilder(Category::class)
83-
->disableOriginalConstructor()
84-
->getMock();
8579
$categoryCollectionMock = $this->getMockBuilder(Collection::class)
8680
->disableOriginalConstructor()
8781
->getMock();

0 commit comments

Comments
 (0)