Skip to content

Firefly III: a personal finances manager

Add experimental .env for test purposes.

James Coled0d7a0befc66
diff --git a/.env.testing b/.env.testing
new file mode 100644
index 0000000000..2ca0859f2a
--- /dev/null
+++ b/.env.testing
@@ -0,0 +1,26 @@
+APP_ENV=testing
+APP_DEBUG=true
+APP_KEY=TestTestTestTestTestTestTestTest
+DEFAULT_LANGUAGE=en_US
+DEFAULT_LOCALE=equal
+TZ=Europe/Amsterdam
+LOG_CHANNEL=stdout
+APP_LOG_LEVEL=debug
+AUDIT_LOG_LEVEL=info
+AUDIT_LOG_CHANNEL=audit_stdout
+DB_CONNECTION=sqlite
+CACHE_DRIVER=array
+SESSION_DRIVER=array
+MAIL_MAILER=log
+SEND_ERROR_MESSAGE=true
+ENABLE_EXTERNAL_MAP=false
+ENABLE_EXTERNAL_RATES=true
+AUTHENTICATION_GUARD=web
+ALLOW_WEBHOOKS=true
+APP_NAME=FireflyIII
+BROADCAST_DRIVER=log
+QUEUE_DRIVER=sync
+CACHE_PREFIX=firefly
+FIREFLY_III_LAYOUT=v1
+APP_URL=http://localhost
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index b985962d91..95f852c4d7 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -43,7 +43,7 @@ jobs:
xmlwriter
- name: Copy standard configuration
- run: copy .env.example .env
+ run: copy .env.testing .env
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
diff --git a/bootstrap/app.php b/bootstrap/app.php
index c6dadd7ee1..cd8a24b28d 100644
--- a/bootstrap/app.php
+++ b/bootstrap/app.php
@@ -44,7 +44,7 @@ if (!function_exists('envNonEmpty')) {
function envNonEmpty(string $key, $default = null)
{
$result = env($key, $default);
- if (is_string($result) && '' === $result) {
+ if ('' === $result) {
$result = $default;
}