Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Dec 11, 2024
1 parent 41a9c7e commit 31ddd87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Test/Unit/Util/UrlConvertorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Magento\Framework\Escaper;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\Filesystem\DirectoryList;
use Magento\Framework\Filesystem\Driver\File;
use Magento\Framework\UrlInterface;
use Magento\Store\Model\Store;
use Magento\Store\Model\StoreManagerInterface;
Expand All @@ -22,7 +23,8 @@ public function testIsLocal()
$urlConvertor = new UrlConvertor(
$this->getStoreManagerMock(),
$this->getDirectoryListMock(),
$this->getEscaperMock()
$this->getEscaperMock(),
$this->createMock(File::class)
);

$this->assertTrue($urlConvertor->isLocal('/media/test.png'));
Expand All @@ -39,7 +41,8 @@ public function testGetFilenameFromUrl()
$urlConvertor = new UrlConvertor(
$this->getStoreManagerMock(),
$this->getDirectoryListMock(),
$this->getEscaperMock()
$this->getEscaperMock(),
$this->createMock(File::class)
);

$this->assertSame(
Expand Down

0 comments on commit 31ddd87

Please sign in to comment.