This commit is contained in:
Pig Fang 2019-04-23 23:48:51 +08:00
parent f224a1be96
commit f82ebb9a8b

View File

@ -0,0 +1,23 @@
<?php
namespace Tests;
use App\Models\Player;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ResetInvalidTextureForPlayerTest extends TestCase
{
use DatabaseTransactions;
public function testHandle()
{
$pid = factory(Player::class)->create([
'tid_skin' => 1,
'tid_cape' => 2,
])->pid;
$player = Player::find($pid);
$this->assertEquals(0, $player->tid_skin);
$this->assertEquals(0, $player->tid_cape);
}
}