Skip to content

Commit 96f58e7

Browse files
#32619: Underscores not allowed in module names in \Magento\Framework\App\Utility\Files::accumulateThemeStaticFiles.
1 parent 696f7ee commit 96f58e7

File tree

1 file changed

+9
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/App/Utility

1 file changed

+9
-2
lines changed

dev/tests/integration/testsuite/Magento/Framework/App/Utility/FilesTest.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Magento\Framework\App\Utility;
88

9-
use Magento\Framework\App\Utility\Files;
109
use Magento\Framework\Component\ComponentRegistrar;
1110

1211
class FilesTest extends \PHPUnit\Framework\TestCase
@@ -169,6 +168,14 @@ public function testReadLists()
169168
*/
170169
public function testAllowUnderscoreInExtendedFiles()
171170
{
172-
$this->model->getStaticPreProcessingFiles('*.less');
171+
$this->assertNotEmpty(
172+
array_filter(
173+
$this->model->getStaticPreProcessingFiles('*.less'),
174+
function ($resource) {
175+
return $resource[3] === 'Module_Third_Party'
176+
&& $resource[4] === 'css/source/_module.less';
177+
}
178+
)
179+
);
173180
}
174181
}

0 commit comments

Comments
 (0)