This commit is contained in:
Marcus Moore
2025-03-11 13:35:50 -07:00
parent fd854072b0
commit 9cbcfba4e9

View File

@@ -0,0 +1,16 @@
<?php
namespace Tests\Feature\Redirects;
use App\Models\User;
use Tests\TestCase;
class ModelNotFoundRedirectTest extends TestCase
{
public function testHandlesLicenseSeat404()
{
$this->actingAs(User::factory()->viewLicenses()->create())
->get(route('licenses.checkin', 9999))
->assertRedirectToRoute('licenses.index');
}
}