Remove getRedirectLocation and setRedirectLocation from Session::Http

This commit is contained in:
Colin Kuskie 2010-11-22 09:28:14 -08:00
parent 8b6bbdb9f7
commit 995b04e7de
8 changed files with 33 additions and 51 deletions

View file

@ -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';