snipe-it/tests/Feature/Settings/BrandingSettingsTest.php
2024-05-23 11:51:08 -07:00

17 lines
368 B
PHP

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