Add test
This commit is contained in:
16
tests/Feature/Redirects/ModelNotFoundRedirectTest.php
Normal file
16
tests/Feature/Redirects/ModelNotFoundRedirectTest.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user