File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -498,8 +498,7 @@ public function setBaseFile($file)
498
498
$ path = [
499
499
$ this ->_catalogProductMediaConfig ->getBaseMediaPath (),
500
500
'cache ' ,
501
- $ this ->_storeManager ->getStore ()->getId (),
502
- $ path [] = $ this ->getDestinationSubdir (),
501
+ $ this ->getDestinationSubdir (),
503
502
];
504
503
if (!empty ($ this ->_width ) || !empty ($ this ->_height )) {
505
504
$ path [] = "{$ this ->_width }x {$ this ->_height }" ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ public function testSetGetBaseFile()
180
180
$ this ->image ->setBaseFile ('/somefile.png ' );
181
181
$ this ->assertEquals ('catalog/product/somefile.png ' , $ this ->image ->getBaseFile ());
182
182
$ this ->assertEquals (
183
- 'catalog/product/cache/1/ /beff4985b56e3afdbeabfc89641a4582/somefile.png ' ,
183
+ 'catalog/product/cache//beff4985b56e3afdbeabfc89641a4582/somefile.png ' ,
184
184
$ this ->image ->getNewFile ()
185
185
);
186
186
}
@@ -302,7 +302,7 @@ public function testGetUrl()
302
302
$ this ->testSetGetBaseFile ();
303
303
$ url = $ this ->image ->getUrl ();
304
304
$ this ->assertEquals (
305
- 'http://magento.com/media/catalog/product/cache/1/ /beff4985b56e3afdbeabfc89641a4582/somefile.png ' ,
305
+ 'http://magento.com/media/catalog/product/cache//beff4985b56e3afdbeabfc89641a4582/somefile.png ' ,
306
306
$ url
307
307
);
308
308
}
You can’t perform that action at this time.
0 commit comments