File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
dev/tests/integration/testsuite/Magento/Framework/File Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,15 @@ public function testUploadFileFromNotAllowedFolder(): void
87
87
/**
88
88
* @inheritdoc
89
89
*/
90
- public static function tearDownAfterClass ()
90
+ protected function tearDown ()
91
91
{
92
- parent ::tearDownAfterClass ();
93
- $ filesystem = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
94
- ->get (\Magento \Framework \Filesystem::class);
92
+ parent ::tearDown ();
95
93
96
94
$ tmpDir = 'tmp ' ;
97
- $ mediaDirectory = $ filesystem ->getDirectoryWrite (DirectoryList::MEDIA );
95
+ $ mediaDirectory = $ this -> filesystem ->getDirectoryWrite (DirectoryList::MEDIA );
98
96
$ mediaDirectory ->delete ($ tmpDir );
99
97
100
- $ logDirectory = $ filesystem ->getDirectoryWrite (DirectoryList::LOG );
98
+ $ logDirectory = $ this -> filesystem ->getDirectoryWrite (DirectoryList::LOG );
101
99
$ logDirectory ->delete ($ tmpDir );
102
100
}
103
101
}
You can’t perform that action at this time.
0 commit comments