File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
dev/tests/integration/testsuite/Magento/Test/Integrity/Modular
lib/internal/Magento/Framework/View/Xsd Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class ViewConfigFilesTest extends \PHPUnit_Framework_TestCase
13
13
*/
14
14
public function testViewConfigFile ($ file )
15
15
{
16
+ /** @var \Magento\Framework\View\Xsd\Reader $reader */
16
17
$ reader = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (
17
18
'Magento\Framework\View\Xsd\Reader '
18
19
);
Original file line number Diff line number Diff line change @@ -74,7 +74,10 @@ public function __construct(
74
74
public function getListXsdFiles ($ filename )
75
75
{
76
76
return $ this ->iteratorFactory ->create (
77
- $ this ->componentDirSearch ->collectFiles (ComponentRegistrar::MODULE , 'etc/ ' . $ filename )
77
+ array_merge (
78
+ $ this ->componentDirSearch ->collectFiles (ComponentRegistrar::MODULE , 'etc/ ' . $ filename ),
79
+ $ this ->componentDirSearch ->collectFiles (ComponentRegistrar::LIBRARY , '*/etc/ ' . $ filename )
80
+ )
78
81
);
79
82
}
80
83
@@ -108,9 +111,13 @@ public function read($scope = null)
108
111
public function readXsdFiles ($ fileList , $ baseXsd = null )
109
112
{
110
113
$ baseXsd = new \DOMDocument ();
111
- $ baseXsd ->load ($ this ->urnResolver ->getRealPath ($ this ->searchFilesPattern . $ this ->fileName ));
114
+ $ baseXsdPath = $ this ->urnResolver ->getRealPath ($ this ->searchFilesPattern . $ this ->fileName );
115
+ $ baseXsd ->load ($ baseXsdPath );
112
116
$ configMerge = null ;
113
117
foreach ($ fileList as $ key => $ content ) {
118
+ if ($ key == $ baseXsdPath ) {
119
+ continue ;
120
+ }
114
121
try {
115
122
if (!empty ($ content )) {
116
123
if ($ configMerge ) {
You can’t perform that action at this time.
0 commit comments