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 9
9
use Magento \Framework \App \Filesystem \DirectoryList ;
10
10
use Magento \Framework \File \Mime ;
11
11
use Magento \Framework \Filesystem ;
12
- use Magento \Framework \Filesystem \Directory \WriteInterface ;
13
12
use Magento \Framework \Filesystem \Directory \ReadInterface ;
13
+ use Magento \Framework \Filesystem \Directory \WriteInterface ;
14
14
use PHPUnit \Framework \MockObject \MockObject ;
15
15
use PHPUnit \Framework \TestCase ;
16
16
17
+ /**
18
+ * Test for Magento\Catalog\Model\Category\FileInfo class.
19
+ */
17
20
class FileInfoTest extends TestCase
18
21
{
19
22
/**
@@ -66,12 +69,14 @@ protected function setUp()
66
69
->willReturn ($ this ->mediaDirectory );
67
70
68
71
$ 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 ;
72
78
}
73
- return $ baseDirectory ;
74
- });
79
+ );
75
80
76
81
$ this ->mime = $ this ->getMockBuilder (Mime::class)
77
82
->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments