mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
User management (#185)
This commit is contained in:
@ -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.');
|
||||
|
Reference in New Issue
Block a user