Complete TP7 TP8 authentication authorization and classic CSS

This commit is contained in:
2026-10-21 00:48:38 +02:00
parent 4a84a17cbf
commit ffe85d5f0d
101 changed files with 7643 additions and 110 deletions
+5
View File
@@ -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();