File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dev/tests/integration/testsuite/Magento/Framework/View/Layout Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ class MergeTest extends \PHPUnit\Framework\TestCase
79
79
protected function setUp ()
80
80
{
81
81
$ files = [];
82
- foreach (glob (__DIR__ . '/_mergeFiles/layout/*.xml ' ) as $ filename ) {
82
+ $ fileDriver = new \Magento \Framework \Filesystem \Driver \File ();
83
+ foreach ($ fileDriver ->readDirectory (__DIR__ . '/_mergeFiles/layout/ ' ) as $ filename ) {
83
84
$ files [] = new \Magento \Framework \View \File ($ filename , 'Magento_Widget ' );
84
85
}
85
86
$ fileSource = $ this ->getMockForAbstractClass (\Magento \Framework \View \File \CollectorInterface::class);
@@ -439,6 +440,7 @@ public function testLoadWithInvalidLayout()
439
440
->method ('isValid ' )
440
441
->willThrowException (new \Exception ('Layout is invalid. ' ));
441
442
443
+ // phpcs:ignore Magento2.Security.InsecureFunction
442
444
$ suffix = md5 (implode ('| ' , $ this ->_model ->getHandles ()));
443
445
$ cacheId = "LAYOUT_ {$ this ->_theme ->getArea ()}_STORE {$ this ->scope ->getId ()}"
444
446
. "_ {$ this ->_theme ->getId ()}{$ suffix }_page_layout_merged " ;
You can’t perform that action at this time.
0 commit comments