File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
dev/tests/integration/testsuite/Magento/Framework/File Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
use Magento \Customer \Model \FileProcessor ;
11
11
use Magento \Framework \App \Filesystem \DirectoryList ;
12
+ use Magento \Framework \Filesystem \Driver \File ;
12
13
13
14
/**
14
15
* Test for \Magento\MediaStorage\Model\File\Uploader
@@ -90,7 +91,7 @@ public function testUploadFileWithExcessiveFolderName(): void
90
91
}
91
92
92
93
/**
93
- * Upload file test when `Old Media Gallery` is disabled
94
+ * Upload file test to 'var' directory
94
95
*
95
96
* @magentoConfigFixture system/media_gallery/enabled 1
96
97
* @magentoAppArea adminhtml
@@ -117,7 +118,7 @@ public function testUploadFileToVar(): void
117
118
$ uploader ->save ($ destinationDirectory ->getAbsolutePath ($ destinationDir ));
118
119
119
120
// Uploader doesn't save file to local var if remote storage is configured
120
- if ($ this ->filesystem ->getDirectoryWrite (DirectoryList::MEDIA )->getDriver () instanceof Filesystem \ Driver \ File) {
121
+ if ($ this ->filesystem ->getDirectoryWrite (DirectoryList::MEDIA )->getDriver () instanceof File) {
121
122
$ this ->assertTrue ($ destinationDirectory ->isFile ($ destinationDir . DIRECTORY_SEPARATOR . $ fileName ));
122
123
} else {
123
124
$ this ->assertFalse ($ destinationDirectory ->isFile ($ destinationDir . DIRECTORY_SEPARATOR . $ fileName ));
You can’t perform that action at this time.
0 commit comments