mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-11-21 15:37:57 +00:00
e5e66da555
When loading tests, load the variables from .env.test if it exists.
15 lines
373 B
PHP
15 lines
373 B
PHP
<?php
|
|
require_once __DIR__.'/../vendor/autoload.php';
|
|
|
|
# Load environment variables with Dotenv if .env.test is present.
|
|
if (file_exists(__DIR__ . '/../.env.test')) {
|
|
$dotenv = Dotenv\Dotenv::create(__DIR__ . '/../', '.env.test');
|
|
$dotenv->overload();
|
|
}
|
|
|
|
if (!defined('sugarEntry')) {
|
|
define('sugarEntry', true);
|
|
}
|
|
|
|
require_once __DIR__.'/../php_version.php';
|