snipe-it/tests/Feature/Locations/Ui/ShowLocationTest.php
2024-12-16 17:45:10 -08:00

18 lines
375 B
PHP

<?php
namespace Tests\Feature\Locations\Ui;
use App\Models\Location;
use App\Models\User;
use Tests\TestCase;
class ShowLocationTest extends TestCase
{
public function testPageRenders()
{
$this->actingAs(User::factory()->superuser()->create())
->get(route('locations.show', Location::factory()->create()->id))
->assertOk();
}
}