Skip to content

Commit 2c3d568

Browse files
Pooja.ManralPooja.Manral
authored andcommitted
AC-9843:: i18n:collect-phrases breaks the translations integrity
1 parent 5c15c93 commit 2c3d568

File tree

1 file changed

+3
-2
lines changed
  • setup/src/Magento/Setup/Test/Unit/Module/I18n/Parser/Adapter

1 file changed

+3
-2
lines changed

setup/src/Magento/Setup/Test/Unit/Module/I18n/Parser/Adapter/JsTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Magento\Setup\Test\Unit\Module\I18n\Parser\Adapter;
99

10+
use Magento\Framework\Filesystem\Driver\File;
1011
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
1112
use Magento\Setup\Module\I18n\Dictionary\Phrase;
1213
use 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()

0 commit comments

Comments
 (0)