mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
81d775f06f
commit
e08667ead5
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user