From 3ee3024de97efa50df77a7ccfb5f7a843916d53d Mon Sep 17 00:00:00 2001 From: Leon Morival Date: Mon, 17 Aug 2026 10:25:15 +0200 Subject: [PATCH] feat: try fix ci/cd --- config/filesystems.php | 3 +++ phpunit.xml | 1 + tests/Feature/FilesystemConfigurationTest.php | 12 ++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 tests/Feature/FilesystemConfigurationTest.php diff --git a/config/filesystems.php b/config/filesystems.php index f4093bc..da3fc7a 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -68,6 +68,9 @@ return [ 'identity_documents' => [ 'driver' => $identityDocumentsDriver, 'root' => $identityDocumentsRoot, + 'url' => $identityDocumentsDriver === 'local' + ? rtrim(env('APP_URL', 'http://localhost'), '/').'/identity-documents' + : env('AWS_URL'), 'serve' => true, 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), diff --git a/phpunit.xml b/phpunit.xml index d703241..f38800b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -25,6 +25,7 @@ + diff --git a/tests/Feature/FilesystemConfigurationTest.php b/tests/Feature/FilesystemConfigurationTest.php new file mode 100644 index 0000000..92ea26b --- /dev/null +++ b/tests/Feature/FilesystemConfigurationTest.php @@ -0,0 +1,12 @@ +toBe('/identity-documents') + ->and(route('storage.identity_documents', [ + 'path' => 'submissions/example.jpg', + ], false)) + ->toBe('/identity-documents/submissions/example.jpg'); +});