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 99
1010use Magento \Customer \Model \FileProcessor ;
1111use Magento \Framework \App \Filesystem \DirectoryList ;
12+ use Magento \Framework \Filesystem \Driver \File ;
1213
1314/**
1415 * Test for \Magento\MediaStorage\Model\File\Uploader
@@ -90,7 +91,7 @@ public function testUploadFileWithExcessiveFolderName(): void
9091 }
9192
9293 /**
93- * Upload file test when `Old Media Gallery` is disabled
94+ * Upload file test to 'var' directory
9495 *
9596 * @magentoConfigFixture system/media_gallery/enabled 1
9697 * @magentoAppArea adminhtml
@@ -117,7 +118,7 @@ public function testUploadFileToVar(): void
117118 $ uploader ->save ($ destinationDirectory ->getAbsolutePath ($ destinationDir ));
118119
119120 // 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) {
121122 $ this ->assertTrue ($ destinationDirectory ->isFile ($ destinationDir . DIRECTORY_SEPARATOR . $ fileName ));
122123 } else {
123124 $ this ->assertFalse ($ destinationDirectory ->isFile ($ destinationDir . DIRECTORY_SEPARATOR . $ fileName ));
You can’t perform that action at this time.
0 commit comments