예제 #1
0
 public function testSettingLoginAttribute()
 {
     $originalAttribute = User::getLoginAttribute();
     User::setLoginAttribute('foo');
     $this->assertEquals('foo', User::getLoginAttribute());
     user::setLoginAttribute($originalAttribute);
 }