From 00d238d945ca1fc226aff33ffbd7b6eb36489188 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Sun, 19 May 2019 17:09:10 +0800 Subject: [PATCH] Fix test https://github.com/bs-community/blessing-skin-server/commit/baef165dbc509f0c520435eb0bed1d88965738d2#diff-26172a0152bcc5300c2e3286ff0d0947L117 --- tests/ReportControllerTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/ReportControllerTest.php b/tests/ReportControllerTest.php index a63d720f..1be736b2 100644 --- a/tests/ReportControllerTest.php +++ b/tests/ReportControllerTest.php @@ -115,7 +115,14 @@ class ReportControllerTest extends TestCase public function testReview() { $admin = factory(User::class, 'admin')->create(); + $texture = factory(Texture::class)->create(['uploader' => $admin->uid]); + $report = new Report; + $report->tid = $texture->tid; + $report->uploader = $admin->uid; + $report->reporter = $admin->uid; + $report->reason = 'test'; + $report->status = Report::PENDING; $report->save(); $report->refresh();