File tree 1 file changed +4
-9
lines changed
dev/tests/static/testsuite/Magento/Test/Legacy/Magento/App/Action
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
declare (strict_types=1 );
7
7
8
- namespace Magento \Test \Legacy \App \Action ;
8
+ namespace Magento \Test \Legacy \Magento \ App \Action ;
9
9
10
10
use Exception ;
11
11
use Magento \Framework \App \Action \AbstractAction ;
@@ -41,9 +41,8 @@ protected function setUp(): void
41
41
}
42
42
43
43
/**
44
- * Test new
45
- *
46
- */
44
+ * Test newly created controllers do not extend deprecated AbstractAction.
45
+ */
47
46
public function testNewControllersDoNotExtendAbstractAction (): void
48
47
{
49
48
$ files = $ this ->getTestFiles ();
@@ -121,25 +120,21 @@ private static function getFilesFromListFile(
121
120
callable $ noListCallback
122
121
): array {
123
122
$ filesDefinedInList = [];
124
-
125
123
$ listFiles = glob ($ listsBaseDir . '/_files/ ' . $ listFilePattern );
126
124
if (!empty ($ listFiles )) {
127
125
foreach ($ listFiles as $ listFile ) {
128
126
$ filesDefinedInList [] = file ($ listFile , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES );
129
127
}
130
-
131
- $ filesDefinedInList = array_merge ([], ...$ filesDefinedInList );
128
+ $ filesDefinedInList = array_merge ([], ...$ filesDefinedInList );
132
129
} else {
133
130
$ filesDefinedInList = call_user_func ($ noListCallback );
134
131
}
135
-
136
132
array_walk (
137
133
$ filesDefinedInList ,
138
134
function (&$ file ) {
139
135
$ file = BP . '/ ' . $ file ;
140
136
}
141
137
);
142
-
143
138
$ filesDefinedInList = array_values (array_unique ($ filesDefinedInList ));
144
139
145
140
return $ filesDefinedInList ;
You can’t perform that action at this time.
0 commit comments