Skip to content
Snippets Groups Projects
Commit 585b8d96 authored by Sergey Ivashchenko's avatar Sergey Ivashchenko
Browse files

MAGETWO-34363: Pull request processing

parent 8b662de2
No related merge requests found
......@@ -6,7 +6,7 @@
namespace Magento\Translation\Model\Js;
use Magento\Framework\Test\Utility\Files;
use Magento\Framework\App\Utility\Files;
use Magento\Framework\App\State;
use Magento\Framework\Filesystem;
use Magento\Framework\Filesystem\Directory\ReadInterface;
......
......@@ -6,7 +6,7 @@
namespace Magento\Translation\Test\Unit\Model\Js;
use Magento\Framework\App\State;
use Magento\Framework\Test\Utility\Files;
use Magento\Framework\App\Utility\Files;
use Magento\Framework\Filesystem;
use Magento\Framework\Filesystem\Directory\ReadInterface;
use Magento\Framework\App\Filesystem\DirectoryList;
......@@ -45,7 +45,7 @@ class DataProviderTest extends \PHPUnit_Framework_TestCase
{
$this->appStateMock = $this->getMock('Magento\Framework\App\State', [], [], '', false);
$this->configMock = $this->getMock('Magento\Translation\Model\Js\Config', [], [], '', false);
$this->filesUtilityMock = $this->getMock('Magento\Framework\Test\Utility\Files', [], [], '', false);
$this->filesUtilityMock = $this->getMock('Magento\Framework\App\Utility\Files', [], [], '', false);
$filesystem = $this->getMock('Magento\Framework\Filesystem', [], [], '', false);
$this->rootDirectoryMock = $this->getMock('Magento\Framework\Filesystem\Directory\Read', [], [], '', false);
$filesystem->expects($this->once())
......
......@@ -490,18 +490,18 @@ class Files
/**
* Returns list of Javascript files in Magento
*
* @param string $area
* @param string $themePath
* @param string $namespace
* @param string $module
* @return array
*/
public function getJsFiles()
public function getJsFiles($area = '*', $themePath = '*/*', $namespace = '*', $module = '*')
{
$key = __METHOD__ . $this->_path;
$key = $area . $themePath . $namespace . $module . __METHOD__ . $this->_path;
if (isset(self::$_cache[$key])) {
return self::$_cache[$key];
}
$namespace = '*';
$module = '*';
$area = '*';
$themePath = '*/*';
$files = self::getFiles(
[
"{$this->_path}/app/code/{$namespace}/{$module}/view/{$area}/web",
......
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment