Permalink
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...
1 parent f400c28 commit a6362eb6e0a6f275de1ff690e9cfa72e2b3502eb @chillu chillu committed Apr 12, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 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);
}
}

0 comments on commit a6362eb

Please sign in to comment.