20 'etc/definition.xml' => [
21 'module_one/ui_component/etc/test_definition.xml',
22 'module_two/ui_component/etc/test_definition.xml' 24 'etc/definition.map.xml' => [
25 'ui_component/etc/definition.map.xml' 27 'etc/test_definition.xml' => [
28 'module_one/ui_component/etc/test_definition.xml',
29 'module_two/ui_component/etc/test_definition.xml' 31 'test_component.xml' => [
32 'module_one/ui_component/test_component.xml',
33 'module_two/ui_component/test_component.xml' 35 'parent_component.xml' => [
36 'module_one/ui_component/parent_component.xml',
37 'module_two/ui_component/parent_component.xml' 44 private $moduleReader;
54 $this->files = array_replace($this->files, $files);
55 $this->moduleReader = $moduleReader;
61 public function get($filename, $scope)
63 if ($filename ==
'etc/definition.map.xml') {
68 $files = isset($this->files[$filename]) ? $this->files[$filename] : [];
70 foreach ($files as $filePath) {
71 $realPaths[] =
$path .
'/' . $filePath;
defined('TESTS_BP')||define('TESTS_BP' __DIR__
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader, array $files=[])