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;