Revision 2264b60d
Added by Andreas Kohlbecker about 13 years ago
modules/cdm_dataportal/test/phpUnit/bootstrap.php | ||
---|---|---|
5 | 5 |
// see http://pkp.sfu.ca/wiki/index.php/Configure_Eclipse_for_PHPUnit#Configure_XDebug_Debugger_to_work_with_PHPUnit |
6 | 6 |
// |
7 | 7 |
print("> bootstrapping Drupal for phpUnit ...\n"); |
8 |
|
|
9 |
//$phpUnitTestBaseDir = "test".DIRECTORY_SEPARATOR."phpUnit"; |
|
10 |
// |
|
11 |
//while(!str_endsWith( getcwd(), $phpUnitTestBaseDir) || strlen(getcwd()) < strln($phpUnitTestBaseDir)){ |
|
12 |
// |
|
13 |
//} |
|
14 |
|
|
15 |
print(">".getcwd()."\n"); |
|
8 |
//print(">".getcwd()."\n"); |
|
16 | 9 |
|
17 | 10 |
// TestUtils.php must be included at the very first step |
18 | 11 |
require_once ('TestUtils.php'); |
... | ... | |
23 | 16 |
$_SERVER['HTTP_HOST']='127.0.0.1'; |
24 | 17 |
$_SERVER['REQUEST_METHOD'] = 'get'; |
25 | 18 |
$_SERVER['REMOTE_ADDR'] = '127.0.0.1'; |
26 |
$_SERVER['REQUEST_URI'] = "http://" . $_SERVER['HTTP_HOST'] . "/" . "cichorieae/"; |
|
19 |
$_SERVER['PHP_SELF'] = $_SERVER['SITE_BASE_PATH']."/index.php"; |
|
20 |
//$_SERVER['REQUEST_URI'] = "http://" . $_SERVER['HTTP_HOST'] . "/" . "flora-malesiana/"; |
|
27 | 21 |
|
28 | 22 |
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); |
29 | 23 |
|
Also available in: Unified diff
displaying polytomous keys (fixes #2152)