Scaffold test case

This commit is contained in:
Marcus Moore 2024-01-02 17:47:52 -08:00
parent 137193ab12
commit d8d92a6d2c
No known key found for this signature in database

View file

@ -66,6 +66,16 @@ class ReportTemplateTest extends TestCase
->assertSessionHasErrors('name'); ->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() public function testSavingReportTemplateRequiresCorrectPermission()
{ {
$this->actingAs(User::factory()->create()) $this->actingAs(User::factory()->create())