Skip to content

A free open source IT asset/license management system

Scaffold test case

Marcus Moored8d92a6d2cf7
diff --git a/tests/Feature/ReportTemplates/ReportTemplateTest.php b/tests/Feature/ReportTemplates/ReportTemplateTest.php
index 4a56f5eda6..15c0844992 100644
--- a/tests/Feature/ReportTemplates/ReportTemplateTest.php
+++ b/tests/Feature/ReportTemplates/ReportTemplateTest.php
@@ -66,6 +66,16 @@ class ReportTemplateTest extends TestCase
->assertSessionHasErrors('name');
}
+ public function testRedirectingAfterValidationErrorRestoresInputs()
+ {
+ $this->markTestIncomplete();
+
+ // We might not implement this test case, but we want to ensure
+ // that selecting fields in the UI, then getting redirected
+ // back after hitting the "Save Template" button without
+ // a name set restores the previously selected values.
+ }
+
public function testSavingReportTemplateRequiresCorrectPermission()
{
$this->actingAs(User::factory()->create())