fix: [test] Ignore beforeRender function

pull/7975/head
Jakub Onderka 2021-11-22 15:36:51 +01:00
parent 9458290b92
commit 01410b694a
1 changed files with 1 additions and 1 deletions

View File

@ -970,7 +970,7 @@ class ACLComponent extends Component
$fileContents = preg_replace('/\/\*[^\*]+?\*\//', '', $fileContents);
preg_match_all($functionFinder, $fileContents, $functionArray);
foreach ($functionArray[1] as $function) {
if (substr($function, 0, 1) !== '_' && $function !== 'beforeFilter' && $function !== 'afterFilter') {
if ($function[0] !== '_' && $function !== 'beforeFilter' && $function !== 'afterFilter' && $function !== 'beforeRender') {
$results[$controllerName][] = $function;
}
}