0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-21 15:37:57 +00:00
salesagility_SuiteCRM/tests/_bootstrap.php
Connor Shea e5e66da555 Add Dotenv variable loading to the test bootstrapper.
When loading tests, load the variables from .env.test if it exists.
2019-08-27 13:59:53 -06:00

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';