Permalink
Browse files

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
  • Loading branch information...
1 parent f23921b commit b7f21302bc55ff60da89be62db16431e300b5dd1 @sminnee sminnee committed Oct 19, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/security/SecurityTest.php
@@ -328,9 +328,8 @@ function testDatabaseIsReadyWithInsufficientMemberColumns() {
* Helper method for the tests above
*/
function doTestLoginForm($email, $password, $backURL = 'test/link') {
- $this->session()->inst_set('BackURL', $backURL);
-
$this->get('Security/logout');
+ $this->session()->inst_set('BackURL', $backURL);
$this->get('Security/login');
return $this->submitForm(
@@ -342,7 +341,7 @@ function doTestLoginForm($email, $password, $backURL = 'test/link') {
'AuthenticationMethod' => 'MemberAuthenticator',
'action_dologin' => 1,
)
- );
+ );
}
/**

0 comments on commit b7f2130

Please sign in to comment.