From d3d90080c53ce738f3519197dfd093eb0519c32f Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Fri, 16 Aug 2024 16:17:03 -0400 Subject: [PATCH] test improvements --- .dev/dockerfile | 4 +--- .dev/test.env | 2 +- .idea/leantime-oss.iml | 49 ++++++++++++++++++++++++++++++++++++++++++ .idea/php.xml | 49 ++++++++++++++++++++++++++++++++++++++++++ .idea/phpspec.xml | 3 +++ tests/bootstrap.php | 2 +- 6 files changed, 104 insertions(+), 5 deletions(-) diff --git a/.dev/dockerfile b/.dev/dockerfile index fac2c81e2..effbc6c10 100644 --- a/.dev/dockerfile +++ b/.dev/dockerfile @@ -55,6 +55,4 @@ RUN a2enmod rewrite VOLUME /var/www/uploads RUN mkdir -p /var/www/uploads \ - && chown -R www-data:www-data /var/www/uploads \ - && chown -R www-data:www-data /var/www/logs \ - && chown -R www-data:www-data /var/www/cache + && chown -R www-data:www-data /var/www/uploads diff --git a/.dev/test.env b/.dev/test.env index 6ce053523..c5d1d88b9 100644 --- a/.dev/test.env +++ b/.dev/test.env @@ -36,7 +36,7 @@ LEAN_KEEP_THEME = true # Keep theme and language fro ## Fileuploads # Local File Uploads -LEAN_USER_FILE_PATH = '../uploads/' # Local relative path to store uploaded files (if not using S3) +LEAN_USER_FILE_PATH = 'userfiles/' # Local relative path to store uploaded files (if not using S3) LEAN_DB_BACKUP_PATH = 'backupdb/' # Local relative path to store backup files, need permission to write # S3 File Uploads diff --git a/.idea/leantime-oss.iml b/.idea/leantime-oss.iml index 985ab2647..399b24d29 100644 --- a/.idea/leantime-oss.iml +++ b/.idea/leantime-oss.iml @@ -105,6 +105,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/php.xml b/.idea/php.xml index 6da5e233a..bfdd65048 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -168,6 +168,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/phpspec.xml b/.idea/phpspec.xml index 30b949d93..45da820ac 100644 --- a/.idea/phpspec.xml +++ b/.idea/phpspec.xml @@ -56,6 +56,9 @@ + + \ No newline at end of file diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 845ad2f87..12470d249 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -17,7 +17,7 @@ require $composer; define('PROJECT_ROOT', realpath(__DIR__ . '/..') . '/'); -define('APP_ROOT', PROJECT_ROOT . 'app/'); +define('APP_ROOT', PROJECT_ROOT . '/'); define('DEV_ROOT', PROJECT_ROOT . '.dev/'); $bootstrapper = get_class(new class {