This commit is contained in:
Pig Fang 2018-07-14 08:27:15 +08:00
parent 3f78b3755a
commit b6cda88ae4

View File

@ -779,8 +779,7 @@ class SkinlibControllerTest extends TestCase
// When setting a texture to be private,
// other players should not be able to use it.
$texture->public = '1';
$texture->save();
$texture = factory(Texture::class)->create(['uploader' => $uploader->uid]);
$uploader->score += $texture->size * option('private_score_per_storage');
$uploader->save();
$player = factory(Player::class)->create(['tid_steve' => $texture->tid]);