Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Fixed MemberAuthenticatorTest, was setting global state in r973…

…57 (from r97369)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102444 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit a6362eb6e0a6f275de1ff690e9cfa72e2b3502eb 1 parent f400c28
@chillu chillu authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/security/MemberAuthenticatorTest.php
View
4 tests/security/MemberAuthenticatorTest.php
@@ -54,11 +54,13 @@ function testNoLegacyPasswordHashMigrationOnIncompatibleAlgorithm() {
function testCustomIdentifierField(){
+ $origField = Member::get_unique_identifier_field();
Member::set_unique_identifier_field('Username');
+
$label=singleton('Member')->fieldLabel(Member::get_unique_identifier_field());
$this->assertEquals($label, 'Username');
-
+ Member::set_unique_identifier_field($origField);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.