From 0053df977a4a0c691ef660b202aac516bb213966 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 7 Jun 2020 10:25:09 +0800 Subject: [PATCH] update tests --- tests/HttpTest/ControllersTest/SkinlibControllerTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/HttpTest/ControllersTest/SkinlibControllerTest.php b/tests/HttpTest/ControllersTest/SkinlibControllerTest.php index 8b1899a2..a4f87b83 100644 --- a/tests/HttpTest/ControllersTest/SkinlibControllerTest.php +++ b/tests/HttpTest/ControllersTest/SkinlibControllerTest.php @@ -589,6 +589,13 @@ class SkinlibControllerTest extends TestCase } ); + $this->putJson(route('texture.privacy', ['texture' => $texture])) + ->assertJson([ + 'code' => 0, + 'message' => trans('skinlib.privacy.success', ['privacy' => trans('general.public')]), + ]); + $this->assertTrue($texture->fresh()->public); + // When setting a texture to be private, // other players should not be able to use it. $texture = factory(Texture::class)->create(['uploader' => $uploader->uid]);