Skip to content

Commit

Permalink
Rewrite for CS compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Dec 11, 2024
1 parent d89d854 commit 41a9c7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Test/Integration/Util/HtmlReplacerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\App\ObjectManager;
use Magento\Framework\Filesystem\Driver\File;
use Yireo\NextGenImages\Block\PictureFactory;
use Yireo\NextGenImages\Config\Config;
use Yireo\NextGenImages\Image\Image;
Expand Down Expand Up @@ -228,7 +229,8 @@ private function copyImages(): void
$fixtureFolder = __DIR__.'/../fixtures/images/';

$tmpFolder = $directoryList->getRoot().'/pub/media/tmp';
@mkdir($tmpFolder);
$fileDriver = $om->get(File::class);
$fileDriver->createDirectory($tmpFolder);

foreach ($images as $image) {
copy($fixtureFolder.'/'.$image, $tmpFolder.'/'.$image);
Expand Down

0 comments on commit 41a9c7e

Please sign in to comment.