From 714fce7e599988f2caf62daa2c1942a716900ff1 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 14 Nov 2023 12:23:58 -0800 Subject: [PATCH] Add site name validation test --- .../Feature/Settings/BrandingSettingsTest.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/Feature/Settings/BrandingSettingsTest.php diff --git a/tests/Feature/Settings/BrandingSettingsTest.php b/tests/Feature/Settings/BrandingSettingsTest.php new file mode 100644 index 0000000000..ef98d85593 --- /dev/null +++ b/tests/Feature/Settings/BrandingSettingsTest.php @@ -0,0 +1,19 @@ +actingAs(User::factory()->superuser()->create()) + ->post(route('settings.branding.save', ['site_name' => ''])) + ->assertInvalid('site_name'); + } +}