Skip to content

Commit e66511a

Browse files
author
Joan He
committed
MAGETWO-89260: Fix Travis build issues
- fix integrity test failure
1 parent 3336c45 commit e66511a

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
@@ -233,7 +233,7 @@ private function isItTest($relativeFilePath)
233233
private function getControllerPath($relativeFilePath)
234234
{
235235
if (preg_match('~(Magento\/.*Controller\/Adminhtml\/.*)\.php~', $relativeFilePath, $matches)) {
236-
if (count($matches) === 2 && count($partPath = $matches[1]) >= 1) {
236+
if (is_array($matches) && count($matches) === 2 && is_array($matches[1]) && count($matches[1]) >= 1) {
237237
$partPath = $matches[1];
238238
return $partPath;
239239
}

0 commit comments

Comments
 (0)