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 77
88namespace Magento \Setup \Test \Unit \Module \I18n \Parser \Adapter ;
99
10+ use Magento \Framework \Filesystem \Driver \File ;
1011use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
1112use Magento \Setup \Module \I18n \Dictionary \Phrase ;
1213use Magento \Setup \Module \I18n \Parser \Adapter \Js ;
@@ -33,8 +34,8 @@ protected function setUp(): void
3334 {
3435 $ this ->_testFile = str_replace ('\\' , '/ ' , realpath (dirname (__FILE__ ))) . '/_files/file.js ' ;
3536 $ 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 ] );
3839 }
3940
4041 public function testParse ()
You can’t perform that action at this time.
0 commit comments