Complete TP7 TP8 authentication authorization and classic CSS
This commit is contained in:
@@ -4,6 +4,7 @@ namespace Tests\Feature;
|
||||
|
||||
use App\Models\Client;
|
||||
use App\Models\Product;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
@@ -13,6 +14,8 @@ class CrudTest extends TestCase
|
||||
|
||||
public function test_client_crud_is_available(): void
|
||||
{
|
||||
$this->actingAs(User::factory()->admin()->create());
|
||||
|
||||
$this->get(route('clients.index'))->assertOk();
|
||||
$this->get(route('clients.create'))->assertOk();
|
||||
|
||||
@@ -39,6 +42,8 @@ class CrudTest extends TestCase
|
||||
|
||||
public function test_product_crud_is_available(): void
|
||||
{
|
||||
$this->actingAs(User::factory()->admin()->create());
|
||||
|
||||
$this->get(route('products.index'))->assertOk();
|
||||
$this->get(route('products.create'))->assertOk();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user