From 20b9a7ce34153a29f29f1fba7c7abf2a9ba6bf7a Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 10 Jun 2022 20:27:18 +0300 Subject: [PATCH] feat(tests): add new constant `PROJECT_NAME` --- tests/Pest.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/Pest.php b/tests/Pest.php index 32370230..f789cbae 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -5,9 +5,19 @@ declare(strict_types=1); namespace Flextype; define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd())); -define('PATH_PROJECT', ROOT_DIR . '/project'); + +/** + * Define the project name. + */ +define('PROJECT_NAME', 'project'); + +/** + * Define the PATH (without trailing slash). + */ +define('PATH_PROJECT', ROOT_DIR . '/' . PROJECT_NAME); define('PATH_TMP', ROOT_DIR . '/var/tmp'); + ! is_file($flextype_autoload = ROOT_DIR . '/vendor/autoload.php') and exit('Please run: composer install for flextype'); $flextype_loader = require_once $flextype_autoload;