You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was writing tests for a Login override plugin. My logout controller method relies on the class method URL::redirectToUrl($url) to redirect users outside Piwik on logout.
The problem is the method dies while being in CLI mode (Common::isPhpCliMode()) so this halts tests.
In my controller I've overridden this behavior checking for PhpCli too then returning $url outside the method but I've expected URL class already used to.
This also would involve following URL class mehtods: redirectToReferrer and redirectToHttps.
Keywords: tests, testing, URL, class, method,
The text was updated successfully, but these errors were encountered:
I was writing tests for a Login override plugin. My logout controller method relies on the class method URL::redirectToUrl($url) to redirect users outside Piwik on logout.
The problem is the method dies while being in CLI mode (Common::isPhpCliMode()) so this halts tests.
In my controller I've overridden this behavior checking for PhpCli too then returning $url outside the method but I've expected URL class already used to.
This also would involve following URL class mehtods: redirectToReferrer and redirectToHttps.
Keywords: tests, testing, URL, class, method,
The text was updated successfully, but these errors were encountered: