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
}
@@ -300,7 +300,7 @@ public function testGetUrl()
300
300
$ this ->testSetGetBaseFile ();
301
301
$ url = $ this ->image ->getUrl ();
302
302
$ this ->assertEquals (
303
- 'http://magento.com/media/catalog/product/cache/1/ /beff4985b56e3afdbeabfc89641a4582/somefile.png ' ,
303
+ 'http://magento.com/media/catalog/product/cache//beff4985b56e3afdbeabfc89641a4582/somefile.png ' ,
304
304
$ url
305
305
);
306
306
}
You can’t perform that action at this time.
0 commit comments