File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
setup/src/Magento/Setup/Test/Unit/Module/I18n/Parser/Adapter Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Setup \Test \Unit \Module \I18n \Parser \Adapter ;
9
9
10
+ use Magento \Framework \Filesystem \Driver \File ;
10
11
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
11
12
use Magento \Setup \Module \I18n \Dictionary \Phrase ;
12
13
use Magento \Setup \Module \I18n \Parser \Adapter \Js ;
@@ -33,8 +34,8 @@ protected function setUp(): void
33
34
{
34
35
$ this ->_testFile = str_replace ('\\' , '/ ' , realpath (dirname (__FILE__ ))) . '/_files/file.js ' ;
35
36
$ this ->_stringsCount = count (file ($ this ->_testFile ));
36
-
37
- $ this ->_adapter = (new ObjectManager ($ this ))->getObject (Js::class);
37
+ $ filesystem = new File ();
38
+ $ this ->_adapter = (new ObjectManager ($ this ))->getObject (Js::class, [ ' filesystem ' => $ filesystem ] );
38
39
}
39
40
40
41
public function testParse ()
You can’t perform that action at this time.
0 commit comments