Setup Inertia (#593)

This commit is contained in:
Saeed Vaziry
2025-05-10 10:10:11 +02:00
committed by GitHub
parent 6eb88c7c6e
commit 38bafd7654
305 changed files with 13378 additions and 15435 deletions

View File

@ -3,10 +3,8 @@
namespace Tests\Feature\API;
use App\Models\Project;
use App\Web\Pages\Settings\Projects\Settings;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Sanctum\Sanctum;
use Livewire\Livewire;
use Tests\TestCase;
class ProjectsTest extends TestCase
@ -50,10 +48,7 @@ public function test_delete_project(): void
$this->user->projects()->attach($project);
Livewire::test(Settings::class, [
'project' => $project,
])
->callAction('delete')
$this->json('DELETE', '/api/projects/'.$project->id)
->assertSuccessful();
$this->assertDatabaseMissing('projects', [