mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed failing test as session being set before logging out and losing BackURL (from r108518)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112759 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f23921b815
commit
b7f21302bc
@ -328,9 +328,8 @@ class SecurityTest extends FunctionalTest {
|
|||||||
* Helper method for the tests above
|
* Helper method for the tests above
|
||||||
*/
|
*/
|
||||||
function doTestLoginForm($email, $password, $backURL = 'test/link') {
|
function doTestLoginForm($email, $password, $backURL = 'test/link') {
|
||||||
$this->session()->inst_set('BackURL', $backURL);
|
|
||||||
|
|
||||||
$this->get('Security/logout');
|
$this->get('Security/logout');
|
||||||
|
$this->session()->inst_set('BackURL', $backURL);
|
||||||
$this->get('Security/login');
|
$this->get('Security/login');
|
||||||
|
|
||||||
return $this->submitForm(
|
return $this->submitForm(
|
||||||
@ -342,7 +341,7 @@ class SecurityTest extends FunctionalTest {
|
|||||||
'AuthenticationMethod' => 'MemberAuthenticator',
|
'AuthenticationMethod' => 'MemberAuthenticator',
|
||||||
'action_dologin' => 1,
|
'action_dologin' => 1,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user