MINOR Fixed MemberAuthenticatorTest, was setting global state in r97357

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97369 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-01-21 09:50:08 +00:00 committed by Sam Minnee
parent 81d775f06f
commit e08667ead5

View File

@ -49,11 +49,13 @@ class MemberAuthenticatorTest extends SapphireTest {
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);
}
}