public function testSettingLoginAttribute()
 {
     $originalAttribute = User::getLoginAttributeName();
     User::setLoginAttributeName('foo');
     $this->assertEquals('foo', User::getLoginAttributeName());
     user::setLoginAttributeName($originalAttribute);
 }