mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
#591 - tests
This commit is contained in:
@ -80,7 +80,7 @@ public function test_cannot_delete_last_project(): void
|
||||
Sanctum::actingAs($this->user, ['read', 'write']);
|
||||
|
||||
$this->json('DELETE', "/api/projects/{$this->user->currentProject->id}")
|
||||
->assertJsonValidationErrorFor('project');
|
||||
->assertJsonValidationErrorFor('name');
|
||||
|
||||
$this->assertDatabaseHas('projects', [
|
||||
'id' => $this->user->currentProject->id,
|
||||
|
Reference in New Issue
Block a user