Skip to content

Commit 0072a2f

Browse files
committed
exclude batch routes from testing
1 parent b3d75a2 commit 0072a2f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/Functional/AdminTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ protected function doTestReachableAdminRoutes($admin)
104104
continue;
105105
}
106106

107+
// batch routes from new admin integration would need POST request
108+
if (strpos($route->getPath(), 'batch')) {
109+
continue;
110+
}
111+
107112
// do not test POST routes
108113
if (isset($requirements['_method'])) {
109114
if ($requirements['_method'] != 'GET') {

web/config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
exit('This script cannot be run from the CLI. Run it from a browser.');
1515
}
1616

17-
if (!in_array(@$_SERVER['REMOTE_ADDR'], [
17+
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
1818
'127.0.0.1',
1919
'::1',
20-
])) {
20+
))) {
2121
header('HTTP/1.0 403 Forbidden');
2222
exit('This script is only accessible from localhost.');
2323
}

0 commit comments

Comments
 (0)