local storage driver & some icon fixes (#187)

This commit is contained in:
Saeed Vaziry
2024-05-01 22:54:44 +02:00
committed by GitHub
parent f81d928c66
commit 9936958259
28 changed files with 334 additions and 439 deletions

View File

@ -88,4 +88,20 @@ public function test_cannot_delete_provider(): void
'id' => $provider->id,
]);
}
public function test_create_local_driver(): void
{
$this->actingAs($this->user);
$this->post(route('settings.storage-providers.connect'), [
'provider' => StorageProvider::LOCAL,
'name' => 'profile',
'path' => '/home/vito/backups',
])->assertSessionDoesntHaveErrors();
$this->assertDatabaseHas('storage_providers', [
'provider' => StorageProvider::LOCAL,
'profile' => 'profile',
]);
}
}