mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
@ -68,4 +68,16 @@ public function test_edit_project(): void
|
||||
'name' => 'new-name',
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_cannot_delete_last_project(): void
|
||||
{
|
||||
$this->actingAs($this->user);
|
||||
|
||||
$this->delete(route('projects.delete', [
|
||||
'project' => $this->user->currentProject,
|
||||
]))
|
||||
->assertSessionDoesntHaveErrors()
|
||||
->assertSessionHas('toast.type', 'error')
|
||||
->assertSessionHas('toast.message', 'Cannot delete the last project.');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user