A free open source IT asset/license management system
Fixed report template test
snipe7fffb5d6fab2
diff --git a/tests/Feature/Reporting/ReportTemplateShowAuthorizationTest.php b/tests/Feature/Reporting/ReportTemplateShowAuthorizationTest.phpindex a7479246f4..8e6caca908 100644--- a/tests/Feature/Reporting/ReportTemplateShowAuthorizationTest.php+++ b/tests/Feature/Reporting/ReportTemplateShowAuthorizationTest.php@@ -27,7 +27,10 @@ class ReportTemplateShowAuthorizationTest extends TestCase$creator = User::factory()->create();$intruder = User::factory()->canViewReports()->create();- $private = ReportTemplate::factory()->for($creator, 'creator')->notShared()->create();+ $private = ReportTemplate::factory()+ ->for($creator, 'creator')+ ->notShared()+ ->create(['name' => 'report-template-show-oracle-' . uniqid()]);$response = $this->actingAs($intruder)->get(route('report-templates.show', $private->id));