File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Controller/Adminhtml/Category
Test/Unit/Controller/Adminhtml/Category Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function execute()
41
41
return $ resultJson ->setData ([
42
42
'id ' => $ categoryId ,
43
43
'path ' => $ category ->getPath (),
44
- 'parentId ' => $ category ->getParentID (),
44
+ 'parentId ' => $ category ->getParentId (),
45
45
]);
46
46
}
47
47
}
Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ public function testExecute()
83
83
84
84
$ categoryMock = $ this ->getMockBuilder (\Magento \Catalog \Model \Category::class)
85
85
->disableOriginalConstructor ()
86
- ->setMethods (['getPath ' , 'getParentID ' , 'getResource ' ])
86
+ ->setMethods (['getPath ' , 'getParentId ' , 'getResource ' ])
87
87
->getMock ();
88
88
89
89
$ 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 ' ]);
91
91
92
92
$ categoryResource = $ this ->createMock (\Magento \Catalog \Model \ResourceModel \Category::class);
93
93
You can’t perform that action at this time.
0 commit comments