File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
app/code/Magento/Catalog/Test/Unit/Model/Category Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 99use Magento \Framework \App \Filesystem \DirectoryList ;
1010use Magento \Framework \File \Mime ;
1111use Magento \Framework \Filesystem ;
12- use Magento \Framework \Filesystem \Directory \WriteInterface ;
1312use Magento \Framework \Filesystem \Directory \ReadInterface ;
13+ use Magento \Framework \Filesystem \Directory \WriteInterface ;
1414use PHPUnit \Framework \MockObject \MockObject ;
1515use PHPUnit \Framework \TestCase ;
1616
17+ /**
18+ * Test for Magento\Catalog\Model\Category\FileInfo class.
19+ */
1720class FileInfoTest extends TestCase
1821{
1922 /**
@@ -66,12 +69,14 @@ protected function setUp()
6669 ->willReturn ($ this ->mediaDirectory );
6770
6871 $ this ->filesystem ->method ('getDirectoryRead ' )
69- ->willReturnCallback (function ($ arg ) use ($ baseDirectory , $ pubDirectory ) {
70- if ($ arg === DirectoryList::PUB ) {
71- return $ pubDirectory ;
72+ ->willReturnCallback (
73+ function ($ arg ) use ($ baseDirectory , $ pubDirectory ) {
74+ if ($ arg === DirectoryList::PUB ) {
75+ return $ pubDirectory ;
76+ }
77+ return $ baseDirectory ;
7278 }
73- return $ baseDirectory ;
74- });
79+ );
7580
7681 $ this ->mime = $ this ->getMockBuilder (Mime::class)
7782 ->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments