mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Improve test
This commit is contained in:
parent
271de1eceb
commit
3d28a9090c
|
@ -47,7 +47,7 @@ class ShowReportTemplateTest extends TestCase implements TestsPermissionsRequire
|
||||||
|
|
||||||
$this->actingAs(User::factory()->canViewReports()->create())
|
$this->actingAs(User::factory()->canViewReports()->create())
|
||||||
->get(route('report-templates.show', $reportTemplate))
|
->get(route('report-templates.show', $reportTemplate))
|
||||||
|
->assertSessionHas('error')
|
||||||
->assertRedirect(route('reports/custom'));
|
->assertRedirect(route('reports/custom'));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue