Skip to content

Commit 585b8d9

Browse files
committed
MAGETWO-34363: Pull request processing
1 parent 8b662de commit 585b8d9

File tree

4 files changed

+9
-1105
lines changed

4 files changed

+9
-1105
lines changed

app/code/Magento/Translation/Model/Js/DataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Magento\Translation\Model\Js;
88

9-
use Magento\Framework\Test\Utility\Files;
9+
use Magento\Framework\App\Utility\Files;
1010
use Magento\Framework\App\State;
1111
use Magento\Framework\Filesystem;
1212
use Magento\Framework\Filesystem\Directory\ReadInterface;

app/code/Magento/Translation/Test/Unit/Model/Js/DataProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Magento\Translation\Test\Unit\Model\Js;
77

88
use Magento\Framework\App\State;
9-
use Magento\Framework\Test\Utility\Files;
9+
use Magento\Framework\App\Utility\Files;
1010
use Magento\Framework\Filesystem;
1111
use Magento\Framework\Filesystem\Directory\ReadInterface;
1212
use Magento\Framework\App\Filesystem\DirectoryList;
@@ -45,7 +45,7 @@ protected function setUp()
4545
{
4646
$this->appStateMock = $this->getMock('Magento\Framework\App\State', [], [], '', false);
4747
$this->configMock = $this->getMock('Magento\Translation\Model\Js\Config', [], [], '', false);
48-
$this->filesUtilityMock = $this->getMock('Magento\Framework\Test\Utility\Files', [], [], '', false);
48+
$this->filesUtilityMock = $this->getMock('Magento\Framework\App\Utility\Files', [], [], '', false);
4949
$filesystem = $this->getMock('Magento\Framework\Filesystem', [], [], '', false);
5050
$this->rootDirectoryMock = $this->getMock('Magento\Framework\Filesystem\Directory\Read', [], [], '', false);
5151
$filesystem->expects($this->once())

lib/internal/Magento/Framework/App/Utility/Files.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,18 +490,18 @@ public function getPageTypeFiles($incomingParams = [], $asDataSet = true)
490490
/**
491491
* Returns list of Javascript files in Magento
492492
*
493+
* @param string $area
494+
* @param string $themePath
495+
* @param string $namespace
496+
* @param string $module
493497
* @return array
494498
*/
495-
public function getJsFiles()
499+
public function getJsFiles($area = '*', $themePath = '*/*', $namespace = '*', $module = '*')
496500
{
497-
$key = __METHOD__ . $this->_path;
501+
$key = $area . $themePath . $namespace . $module . __METHOD__ . $this->_path;
498502
if (isset(self::$_cache[$key])) {
499503
return self::$_cache[$key];
500504
}
501-
$namespace = '*';
502-
$module = '*';
503-
$area = '*';
504-
$themePath = '*/*';
505505
$files = self::getFiles(
506506
[
507507
"{$this->_path}/app/code/{$namespace}/{$module}/view/{$area}/web",

0 commit comments

Comments
 (0)