mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
set storage driver via admin
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Domain\Settings;
|
||||
|
||||
use Storage;
|
||||
@@ -198,4 +199,26 @@ class SettingsTest extends TestCase
|
||||
'smtp.encryption' => 'tls',
|
||||
])->assertStatus(204);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_set_storage()
|
||||
{
|
||||
$admin = User::factory()
|
||||
->create(['role' => 'admin']);
|
||||
|
||||
$this
|
||||
->actingAs($admin)
|
||||
->postJson('/api/admin/settings/storage', [
|
||||
'storage' => [
|
||||
'driver' => 's3',
|
||||
'key' => '123456',
|
||||
'secret' => '123456',
|
||||
'region' => 'frankfurt',
|
||||
'bucket' => 'cloud',
|
||||
'endpoint' => 'https://cloud.frankfurt.storage.com',
|
||||
],
|
||||
])->assertStatus(204);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user