File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/Analytics Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function __construct(
89
89
public function prepareExportData ()
90
90
{
91
91
try {
92
- $ tmpDirectory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::VAR_DIR );
92
+ $ tmpDirectory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::SYS_TMP );
93
93
94
94
$ this ->prepareDirectory ($ tmpDirectory , $ this ->getTmpFilesDirRelativePath ());
95
95
$ this ->reportWriter ->write ($ tmpDirectory , $ this ->getTmpFilesDirRelativePath ());
Original file line number Diff line number Diff line change 13
13
use Magento \Framework \Archive ;
14
14
use Magento \Framework \Filesystem ;
15
15
use Magento \Framework \Filesystem \Directory \WriteInterface ;
16
- use Magento \Framework \App \ Filesystem \DirectoryList ;
16
+ use Magento \Framework \Filesystem \DirectoryList ;
17
17
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager as ObjectManagerHelper ;
18
18
19
19
class ExportDataHandlerTest extends \PHPUnit \Framework \TestCase
@@ -137,7 +137,7 @@ public function testPrepareExportData($isArchiveSourceDirectory)
137
137
$ this ->filesystemMock
138
138
->expects ($ this ->once ())
139
139
->method ('getDirectoryWrite ' )
140
- ->with (DirectoryList::VAR_DIR )
140
+ ->with (DirectoryList::SYS_TMP )
141
141
->willReturn ($ this ->directoryMock );
142
142
$ this ->directoryMock
143
143
->expects ($ this ->exactly (4 ))
@@ -238,7 +238,7 @@ public function testPrepareExportDataWithLocalizedException()
238
238
$ this ->filesystemMock
239
239
->expects ($ this ->once ())
240
240
->method ('getDirectoryWrite ' )
241
- ->with (DirectoryList::VAR_DIR )
241
+ ->with (DirectoryList::SYS_TMP )
242
242
->willReturn ($ this ->directoryMock );
243
243
$ this ->reportWriterMock
244
244
->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments