File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -928,7 +928,7 @@ public function getCssFilesContent(array $files)
928
928
try {
929
929
foreach ($ files as $ file ) {
930
930
$ asset = $ this ->_assetRepo ->createAsset ($ file , $ designParams );
931
- $ filePath = $ asset ->getContext ()->getPath () . ' / ' . $ file ;
931
+ $ filePath = $ asset ->getContext ()->getPath () . DIRECTORY_SEPARATOR . $ file ;
932
932
if ($ this ->getPubDirectory ()->isExist ($ filePath )) {
933
933
$ css .= $ this ->getPubDirectory ()->readFile ($ filePath );
934
934
} else {
Original file line number Diff line number Diff line change @@ -320,11 +320,11 @@ public function testGetCssFilesContent()
320
320
$ reflectionProperty ->setValue ($ filter , $ pubDirectory );
321
321
$ pubDirectory ->expects ($ this ->once ())
322
322
->method ('isExist ' )
323
- ->with ($ path . ' / ' . $ file )
323
+ ->with ($ path . DIRECTORY_SEPARATOR . $ file )
324
324
->willReturn (true );
325
325
$ pubDirectory ->expects ($ this ->once ())
326
326
->method ('readFile ' )
327
- ->with ($ path . ' / ' . $ file )
327
+ ->with ($ path . DIRECTORY_SEPARATOR . $ file )
328
328
->willReturn ($ css );
329
329
330
330
$ filter ->setDesignParams ($ designParams );
You can’t perform that action at this time.
0 commit comments