Skip to content

Commit 7ed7571

Browse files
committed
Remove duplication
1 parent a4863c6 commit 7ed7571

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

Magento2/Tests/Legacy/PhtmlTemplateUnitTest.php

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function getTestFiles($testFileBase): array
3737

3838
// Put them in order.
3939
sort($testFiles);
40-
40+
4141
return $testFiles;
4242
}
4343

@@ -54,28 +54,14 @@ public function getErrorList()
5454
*/
5555
public function getWarningList($testFile = '')
5656
{
57-
if ($testFile === 'PhtmlTemplateUnitTest.1.phtml' || $testFile === 'PhtmlTemplateUnitTest.2.phtml') {
58-
return [
59-
9 => 1,
60-
20 => 1,
61-
23 => 1,
62-
27 => 1,
63-
44 => 1,
64-
45 => 1,
65-
46 => 1,
66-
];
67-
}
68-
if ($testFile === 'PhtmlTemplateUnitTest.3.phtml') {
69-
return [
70-
9 => 1,
71-
20 => 1,
72-
23 => 1,
73-
27 => 1,
74-
44 => 1,
75-
45 => 1,
76-
46 => 1,
77-
];
78-
}
79-
return [];
57+
return [
58+
9 => 1,
59+
20 => 1,
60+
23 => 1,
61+
27 => 1,
62+
44 => 1,
63+
45 => 1,
64+
46 => 1,
65+
];
8066
}
8167
}

0 commit comments

Comments
 (0)