snipe-it/tests/Feature/Settings/BrandingSettingsTest.php

20 lines
441 B
PHP
Raw Normal View History

2023-11-14 12:23:58 -08:00
<?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');
}
}