File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Model/Category/Attribute/Backend
Test/Unit/Model/Category/Attribute/Backend Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Catalog \Model \Category \Attribute \Backend ;
7
7
8
- use Magento \Catalog \Model \ImageUploader ;
9
8
use Magento \Framework \App \Filesystem \DirectoryList ;
10
9
use Magento \Framework \File \Uploader ;
11
10
@@ -137,15 +136,15 @@ public function beforeSave($object)
137
136
}
138
137
139
138
/**
140
- * @return ImageUploader
139
+ * @return \Magento\Catalog\Model\ ImageUploader
141
140
*
142
141
* @deprecated 101.0.0
143
142
*/
144
143
private function getImageUploader ()
145
144
{
146
145
if ($ this ->imageUploader === null ) {
147
146
$ this ->imageUploader = \Magento \Framework \App \ObjectManager::getInstance ()
148
- ->get (ImageUploader ::class);
147
+ ->get (\ Magento \ Catalog \CategoryImageUpload ::class);
149
148
}
150
149
151
150
return $ this ->imageUploader ;
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Catalog \Test \Unit \Model \Category \Attribute \Backend ;
7
7
8
- use Magento \Catalog \Model \ImageUploader ;
9
8
use Magento \Framework \App \Filesystem \DirectoryList ;
10
9
use Magento \Framework \Filesystem \Directory \WriteInterface ;
11
10
@@ -269,7 +268,7 @@ private function setUpModelForAfterSave()
269
268
$ objectManagerMock ->expects ($ this ->any ())
270
269
->method ('get ' )
271
270
->will ($ this ->returnCallback (function ($ class , $ params = []) use ($ imageUploaderMock ) {
272
- if ($ class == ImageUploader ::class) {
271
+ if ($ class == \ Magento \ Catalog \CategoryImageUpload ::class) {
273
272
return $ imageUploaderMock ;
274
273
}
275
274
You can’t perform that action at this time.
0 commit comments