feat: try fix ci/cd
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
<env name="CACHE_STORE" value="array"/>
|
||||
<env name="DB_CONNECTION" value="sqlite"/>
|
||||
<env name="DB_DATABASE" value=":memory:"/>
|
||||
<env name="FILESYSTEM_DISK" value="local"/>
|
||||
<env name="MAIL_MAILER" value="array"/>
|
||||
<env name="QUEUE_CONNECTION" value="sync"/>
|
||||
<env name="SESSION_DRIVER" value="array"/>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
it('serves local identity documents from a dedicated URL', function () {
|
||||
$identityDocumentsUrl = (string) config('filesystems.disks.identity_documents.url');
|
||||
|
||||
expect(parse_url($identityDocumentsUrl, PHP_URL_PATH))
|
||||
->toBe('/identity-documents')
|
||||
->and(route('storage.identity_documents', [
|
||||
'path' => 'submissions/example.jpg',
|
||||
], false))
|
||||
->toBe('/identity-documents/submissions/example.jpg');
|
||||
});
|
||||
Reference in New Issue
Block a user