mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
Setup Inertia (#593)
This commit is contained in:
@ -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', [
|
||||
|
Reference in New Issue
Block a user