From b6cda88ae4099329a7a1124cb721adb77e158c78 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 14 Jul 2018 08:27:15 +0800 Subject: [PATCH] fix test --- tests/SkinlibControllerTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/SkinlibControllerTest.php b/tests/SkinlibControllerTest.php index 9cb24b0f..c5d4ea60 100644 --- a/tests/SkinlibControllerTest.php +++ b/tests/SkinlibControllerTest.php @@ -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]);