Skip to content

Commit 6989a91

Browse files
author
OlgaVasyltsun
committed
MC-18099: Changes in Downloadable product upload controller
1 parent 1647eb4 commit 6989a91

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dev/tests/integration/testsuite/Magento/Framework/File/UploaderTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,15 @@ public function testUploadFileFromNotAllowedFolder(): void
8787
/**
8888
* @inheritdoc
8989
*/
90-
public static function tearDownAfterClass()
90+
protected function tearDown()
9191
{
92-
parent::tearDownAfterClass();
93-
$filesystem = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
94-
->get(\Magento\Framework\Filesystem::class);
92+
parent::tearDown();
9593

9694
$tmpDir = 'tmp';
97-
$mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::MEDIA);
95+
$mediaDirectory = $this->filesystem->getDirectoryWrite(DirectoryList::MEDIA);
9896
$mediaDirectory->delete($tmpDir);
9997

100-
$logDirectory = $filesystem->getDirectoryWrite(DirectoryList::LOG);
98+
$logDirectory = $this->filesystem->getDirectoryWrite(DirectoryList::LOG);
10199
$logDirectory->delete($tmpDir);
102100
}
103101
}

0 commit comments

Comments
 (0)