snipe-it/tests/Feature/Locations/Ui/ShowLocationTest.php
snipe 347eb2bdee Fixed route parameters and tests to match
Signed-off-by: snipe <snipe@snipe.net>
2025-02-19 05:03:56 +00:00

18 lines
371 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()))
->assertOk();
}
}