Open jmoral opened 8 months ago
Unfortunately no, this is not possible due to the fact that $httpUtils->redirectTrustedURL()
never returns.
We are working on migrating the entire codebase to Symfony responses, so that a call to $httpUtils->redirectTrustedURL()
would return a RedirectResponse
I am trying to write some unit tests to https://github.com/simplesamlphp/simplesamlphp-module-expirycheck/
is it possible to test Auth\ProcessingFilter in a module which uses a $httpUtils->redirectTrustedURL?
$filter->process($request);
https://github.com/simplesamlphp/simplesamlphp-module-expirycheck/blob/211ed0f229df807e3def38d55d1a42c89e406a04/src/Auth/Process/ExpiryDate.php#L191
throws this exception
any help is welcome
Regards