mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 07:50:08 +08:00
Squashed 'public/legacy/' content from commit 817a12dc0
git-subtree-dir: public/legacy git-subtree-split: 817a12dc0c30c189f56d5cb1f7dc37a9631bdbe3
This commit is contained in:
commit
8e4cc94994
9769 changed files with 1617695 additions and 0 deletions
24
tests/unit/_bootstrap.php
Normal file
24
tests/unit/_bootstrap.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
// Here you can initialize variables that will be available to your test
|
||||
//echo "CWD:" . getcwd() . "\n";
|
||||
chdir('../');
|
||||
if (!defined('sugarEntry')) {
|
||||
define('sugarEntry', true);
|
||||
define('SUITE_PHPUNIT_RUNNER', true);
|
||||
}
|
||||
/* bootstrap composer's autoloader */
|
||||
require_once __DIR__.'/../../vendor/autoload.php';
|
||||
global $sugar_config, $db;
|
||||
|
||||
require_once __DIR__ .'/../../include/database/DBManagerFactory.php';
|
||||
|
||||
require_once __DIR__ .'/../../include/utils.php';
|
||||
require_once __DIR__ .'/../../include/modules.php';
|
||||
require_once __DIR__ .'/../../include/entryPoint.php';
|
||||
$db = DBManagerFactory::getInstance();
|
||||
//Oddly entry point loads app_strings but not app_list_strings, manually do this here.
|
||||
$GLOBALS['current_language'] = 'en_us';
|
||||
$GLOBALS['app_list_strings'] = return_app_list_strings_language($GLOBALS['current_language']);
|
||||
|
||||
/* VERY BAD :-( - but for now at least tests are running */
|
||||
$GLOBALS['sugar_config']['resource_management']['default_limit'] = 999999;
|
Loading…
Add table
Add a link
Reference in a new issue