Remove deprecated player_name attribute on player instance
This commit is contained in:
parent
07566c4c16
commit
22128d360c
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user