Skip to content

Commit 7838549

Browse files
author
Olga Kopylova
committed
MAGETWO-34434: Fix Dependency Test
- limited setup classes check to 'php' files
1 parent 0ac08d5 commit 7838549

File tree

2 files changed

+2
-2
lines changed
  • dev/tests/static/framework

2 files changed

+2
-2
lines changed

dev/tests/static/framework/Magento/TestFramework/Dependency/DbRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(array $tables)
3737
*/
3838
public function getDependencyInfo($currentModule, $fileType, $file, &$contents)
3939
{
40-
if (!preg_match('#/app/.*/(Setup|Resource)/.*\.php$#', $file)) {
40+
if ('php' != $fileType || !preg_match('#/app/.*/(Setup|Resource)/.*\.php$#', $file)) {
4141
return [];
4242
}
4343

dev/tests/static/framework/tests/unit/testsuite/Magento/TestFramework/Dependency/DbRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function setUp()
2626
*/
2727
public function testGetDependencyInfo($module, $file, $contents, array $expected)
2828
{
29-
$this->assertEquals($expected, $this->model->getDependencyInfo($module, 'any', $file, $contents));
29+
$this->assertEquals($expected, $this->model->getDependencyInfo($module, 'php', $file, $contents));
3030
}
3131

3232
public function getDependencyInfoDataProvider()

0 commit comments

Comments
 (0)