User management (#185)

This commit is contained in:
Saeed Vaziry
2024-04-29 20:58:04 +02:00
committed by GitHub
parent 35f896eab1
commit d846acaa8d
106 changed files with 1490 additions and 434 deletions

View File

@ -19,7 +19,7 @@ public function test_connect_dropbox(): void
Http::fake();
$this->post(route('storage-providers.connect'), [
$this->post(route('settings.storage-providers.connect'), [
'provider' => StorageProvider::DROPBOX,
'name' => 'profile',
'token' => 'token',
@ -40,7 +40,7 @@ public function test_see_providers_list(): void
'provider' => StorageProvider::DROPBOX,
]);
$this->get(route('storage-providers'))
$this->get(route('settings.storage-providers'))
->assertSuccessful()
->assertSee($provider->profile);
}
@ -53,7 +53,7 @@ public function test_delete_provider(): void
'user_id' => $this->user->id,
]);
$this->delete(route('storage-providers.delete', $provider->id))
$this->delete(route('settings.storage-providers.delete', $provider->id))
->assertSessionDoesntHaveErrors();
$this->assertDatabaseMissing('storage_providers', [
@ -79,7 +79,7 @@ public function test_cannot_delete_provider(): void
'storage_id' => $provider->id,
]);
$this->delete(route('storage-providers.delete', $provider->id))
$this->delete(route('settings.storage-providers.delete', $provider->id))
->assertSessionDoesntHaveErrors()
->assertSessionHas('toast.type', 'error')
->assertSessionHas('toast.message', 'This storage provider is being used by a backup.');