Skip to content

Commit a6ec117

Browse files
committed
MQE-2008: Filter test generation and execution by severity
1 parent afc5551 commit a6ec117

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dev/tests/unit/Magento/FunctionalTestFramework/Util/TestGeneratorTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ public function testAllowSkipped()
119119
public function testFilter()
120120
{
121121
// Mock filters for TestGenerator
122-
AspectMock::double(MftfApplicationConfig::class, ['getFilterList' => new FilterList(['severity' => ["CRITICAL"]])]);
122+
AspectMock::double(
123+
MftfApplicationConfig::class,
124+
['getFilterList' => new FilterList(['severity' => ["CRITICAL"]])]
125+
);
123126

124127
$actionInput = 'fakeInput';
125128
$actionObject = new ActionObject('fakeAction', 'comment', [
@@ -146,7 +149,7 @@ public function testFilter()
146149

147150
// Mock createCestFile to return name of tests that testGenerator tried to create
148151
$generatedTests = [];
149-
AspectMock::double(TestGenerator::class, ['createCestFile' => function ($arg1, $arg2) use (&$generatedTests){
152+
AspectMock::double(TestGenerator::class, ['createCestFile' => function ($arg1, $arg2) use (&$generatedTests) {
150153
$generatedTests[$arg2] = true;
151154
}]);
152155

0 commit comments

Comments
 (0)