->
willReturn(true
);
return [$captcha];
} private function getControllerEventMock(): ControllerEvent
{ return new ControllerEvent( $this->
createMock(HttpKernelInterface::
class),
function D
): void
{ },
self::
getRequest($this->
getRequestAttributes(true
)),
HttpKernelInterface::MAIN_REQUEST
);
} private static function getRequest(ParameterBag
$attributes): Request
{ return new Request([],
[],
$attributes->
all(),
[],
[],
[]);
} private function getRequestAttributes(bool
$isCheckEnabled): ParameterBag
{