mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 09:34:10 -08:00
20 lines
441 B
PHP
20 lines
441 B
PHP
<?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');
|
|
}
|
|
}
|