Skip to content

Add module test helper expectRedirectTo + api docs

Harald Eilertsen requested to merge snake66/hubzilla-core:misc-fixes into dev

Adds a new module test helper method expectRedirectTo as a shortcut for calling stub_goaway() and handling the redirect exception with either try...catch or the PHPUnit expect methods directly.

Also updates/expands the API docs for the module test case base class, and includes a minor unrelated refactor of the is_local_url() function.

Merge request reports