File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/OfflineShipping/Test/Unit/Model/ResourceModel/Carrier Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
use Magento \Framework \App \Config \ScopeConfigInterface ;
11
11
use Magento \Framework \App \DeploymentConfig ;
12
+ use Magento \Framework \App \Filesystem \DirectoryList ;
12
13
use Magento \Framework \App \Request \Http ;
13
14
use Magento \Framework \App \RequestFactory ;
14
15
use Magento \Framework \App \ResourceConnection ;
@@ -129,7 +130,7 @@ public function testUploadAndImport()
129
130
->with ('import.csv ' )->willReturn ($ fileReadMock );
130
131
$ this ->filesystemMock ->expects ($ this ->once ())
131
132
->method ('getDirectoryWrite ' )
132
- ->with (' some/path/to/file ' )->willReturn ($ writeMock );
133
+ ->with (DirectoryList:: VAR_IMPORT_EXPORT )->willReturn ($ writeMock );
133
134
134
135
$ this ->resource ->expects ($ this ->once ())->method ('getConnection ' )->willReturn ($ connectionMock );
135
136
You can’t perform that action at this time.
0 commit comments