This commit is contained in:
Pig Fang 2019-05-19 14:49:49 +08:00 committed by GitHub
parent e182bb2c84
commit 74f56916ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,7 +219,8 @@ class ReportControllerTest extends TestCase
$report->status = Report::PENDING;
$report->save();
$score = $reporter->score;
$this->postJson('/admin/reports', ['id' => $report->id, 'action' => 'ban'])
$this->actingAs($admin)
->postJson('/admin/reports', ['id' => $report->id, 'action' => 'ban'])
->assertJson([
'code' => 0,
'message' => trans('general.op-success'),