Skip to content

Commit aec2089

Browse files
committed
MAGETWO-31575: Remove black/white lists from file system and builds configuration
- fixed test
1 parent 84f7e66 commit aec2089

File tree

1 file changed

+3
-3
lines changed
  • dev/tests/static/framework/tests/unit/testsuite/Magento/TestFramework/CodingStandard/Tool

1 file changed

+3
-3
lines changed

dev/tests/static/framework/tests/unit/testsuite/Magento/TestFramework/CodingStandard/Tool/CodeSnifferTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ protected function setUp()
4040
public function testRun()
4141
{
4242
$whiteList = ['test' . rand(), 'test' . rand()];
43-
$blackList = ['test' . rand(), 'test' . rand()];
4443
$extensions = ['test' . rand(), 'test' . rand()];
4544

4645
$this->_wrapper->expects($this->once())->method('getDefaults')->will($this->returnValue([]));
4746

4847
$expectedCliEmulation = [
4948
'files' => $whiteList,
5049
'standard' => [self::RULE_SET],
51-
'ignored' => $blackList,
5250
'extensions' => $extensions,
5351
'reportFile' => self::REPORT_FILE,
5452
'warningSeverity' => 0,
5553
'reports' => ['checkstyle' => null],
5654
];
5755

56+
$this->_tool->setExtensions($extensions);
57+
5858
$this->_wrapper->expects($this->once())->method('setValues')->with($this->equalTo($expectedCliEmulation));
5959

6060
$this->_wrapper->expects($this->once())->method('process');
6161

62-
$this->_tool->run($whiteList, $blackList, $extensions);
62+
$this->_tool->run($whiteList);
6363
}
6464
}

0 commit comments

Comments
 (0)