Skip to content

Commit f24ad5c

Browse files
committed
MAGETWO-81926: Category hierarchy isn't updated on Product Admin page
1 parent f36a620 commit f24ad5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Category/RefreshPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function execute()
4141
return $resultJson->setData([
4242
'id' => $categoryId,
4343
'path' => $category->getPath(),
44-
'parentId' => $category->getParentID(),
44+
'parentId' => $category->getParentId(),
4545
]);
4646
}
4747
}

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category/RefreshPathTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ public function testExecute()
8383

8484
$categoryMock = $this->getMockBuilder(\Magento\Catalog\Model\Category::class)
8585
->disableOriginalConstructor()
86-
->setMethods(['getPath', 'getParentID', 'getResource'])
86+
->setMethods(['getPath', 'getParentId', 'getResource'])
8787
->getMock();
8888

8989
$categoryMock->expects($this->any())->method('getPath')->willReturn($value['path']);
90-
$categoryMock->expects($this->any())->method('getParentID')->willReturn($value['parentId']);
90+
$categoryMock->expects($this->any())->method('getParentId')->willReturn($value['parentId']);
9191

9292
$categoryResource = $this->createMock(\Magento\Catalog\Model\ResourceModel\Category::class);
9393

0 commit comments

Comments
 (0)