Skip to content

Commit 0e24ef1

Browse files
committed
Update regex in ControllerAclTest
1 parent c268006 commit 0e24ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend/ControllerAclTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private function isItTest($relativeFilePath)
232232
*/
233233
private function getControllerPath($relativeFilePath)
234234
{
235-
if (preg_match('~(Magento\/.*Controller\/Adminhtml\/.*)\.php~', $relativeFilePath, $matches)) {
235+
if (preg_match('~(Magento\/[^\/]+\/Controller\/Adminhtml\/.*)\.php~', $relativeFilePath, $matches)) {
236236
if (count($matches) === 2) {
237237
$partPath = $matches[1];
238238
return $partPath;

0 commit comments

Comments
 (0)