Remove getRedirectLocation and setRedirectLocation from Session::Http
This commit is contained in:
parent
8b6bbdb9f7
commit
995b04e7de
8 changed files with 33 additions and 51 deletions
4
t/Auth.t
4
t/Auth.t
|
|
@ -64,7 +64,7 @@ WebGUI::Test->addToCleanup(sub {
|
|||
});
|
||||
|
||||
is(
|
||||
$createAccountSession->http->getRedirectLocation, 'REDIRECT_URL',
|
||||
$createAccountSession->response->location, 'REDIRECT_URL',
|
||||
"returnUrl field is used to set redirect after createAccountSave",
|
||||
);
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ $session->setting->set('showMessageOnLogin', 0);
|
|||
$output = $auth->login;
|
||||
|
||||
is(
|
||||
$loginSession->http->getRedirectLocation, 'REDIRECT_LOGIN_URL',
|
||||
$loginSession->response->location, 'REDIRECT_LOGIN_URL',
|
||||
"returnUrl field is used to set redirect after login",
|
||||
);
|
||||
is $output, undef, 'login returns undef when showMessageOnLogin is false';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue