Remove deprecated player_name attribute on player instance

This commit is contained in:
Pig Fang 2019-12-30 17:04:19 +08:00
parent 07566c4c16
commit 22128d360c
2 changed files with 0 additions and 17 deletions

View File

@ -97,15 +97,4 @@ class Player extends Model
return json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
}
/**
* TODO: This is only for compatibility of 3rd plugins.
* Remove this in next major version.
*
* @deprecated
*/
public function getPlayerNameAttribute()
{
return $this->name;
}
}

View File

@ -27,10 +27,4 @@ class PlayerTest extends TestCase
$this->expectException(\InvalidArgumentException::class);
$this->assertNull($player->getJsonProfile(-1));
}
public function testGetPlayerName()
{
$player = factory(Player::class)->make();
$this->assertEquals($player->name, $player->player_name);
}
}