From edf14f5a62f611b415e651231f9b4958349bc247 Mon Sep 17 00:00:00 2001 From: Alessandro Ronchi Date: Wed, 11 Jul 2018 09:04:06 +0200 Subject: [PATCH] Update ControllerActlTest.php --- .../Test/Integrity/Magento/Backend/ControllerAclTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend/ControllerAclTest.php b/dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend/ControllerAclTest.php index 187cb9087013e..fc53e4391007b 100644 --- a/dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend/ControllerAclTest.php +++ b/dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend/ControllerAclTest.php @@ -232,8 +232,8 @@ private function isItTest($relativeFilePath) */ private function getControllerPath($relativeFilePath) { - if (preg_match('~(Magento\/.*Controller\/Adminhtml\/.*)\.php~', $relativeFilePath, $matches)) { - if (count($matches) === 2) { + if (preg_match('~(Magento\/[^\/]+\/Controller\/Adminhtml\/.*)\.php~', $relativeFilePath, $matches)) { + if (count($matches) === 2 && count($partPath = $matches[1]) >= 1) { $partPath = $matches[1]; return $partPath; }