Skip to content

Commit 79d571e

Browse files
committed
ACP2E-2129: customer is reporting their table rates are not updating via CSV any longer
- fixed unit
1 parent 6d2e167 commit 79d571e

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/OfflineShipping/Test/Unit/Model/ResourceModel/Carrier

1 file changed

+2
-1
lines changed

app/code/Magento/OfflineShipping/Test/Unit/Model/ResourceModel/Carrier/TablerateTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
use Magento\Framework\App\Config\ScopeConfigInterface;
1111
use Magento\Framework\App\DeploymentConfig;
12+
use Magento\Framework\App\Filesystem\DirectoryList;
1213
use Magento\Framework\App\Request\Http;
1314
use Magento\Framework\App\RequestFactory;
1415
use Magento\Framework\App\ResourceConnection;
@@ -129,7 +130,7 @@ public function testUploadAndImport()
129130
->with('import.csv')->willReturn($fileReadMock);
130131
$this->filesystemMock->expects($this->once())
131132
->method('getDirectoryWrite')
132-
->with('some/path/to/file')->willReturn($writeMock);
133+
->with(DirectoryList::VAR_IMPORT_EXPORT)->willReturn($writeMock);
133134

134135
$this->resource->expects($this->once())->method('getConnection')->willReturn($connectionMock);
135136

0 commit comments

Comments
 (0)