Add site name validation test

This commit is contained in:
Marcus Moore 2023-11-14 12:23:58 -08:00
parent 08e4ea384e
commit 714fce7e59
No known key found for this signature in database

View file

@ -0,0 +1,19 @@
<?php
namespace Tests\Feature\Settings;
use App\Models\User;
use Tests\Support\InteractsWithSettings;
use Tests\TestCase;
class BrandingSettingsTest extends TestCase
{
use InteractsWithSettings;
public function testSiteNameIsRequired()
{
$this->actingAs(User::factory()->superuser()->create())
->post(route('settings.branding.save', ['site_name' => '']))
->assertInvalid('site_name');
}
}