mirror of
https://github.com/nextcloud/passman.git
synced 2024-09-20 06:46:20 +08:00
PHPUnit fixes for custom locations
This commit is contained in:
parent
c4f8439126
commit
bb6c7a13b9
4
launch_phpunit.sh → launch_phpunit.sh.sample
Executable file → Normal file
4
launch_phpunit.sh → launch_phpunit.sh.sample
Executable file → Normal file
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Setup your testing environment paths
|
||||
export SERVER_BASE_DIR=/var/www/html/nextcloud/
|
||||
export SERVER_CONFIG_DIR=/var/www/html/nextcloud/config/
|
||||
export SERVER_BASE_DIR=/var/www/html/
|
||||
export SERVER_CONFIG_DIR=/var/www/html/config/
|
||||
export SERVER_CONFIG_FILE=config.php
|
||||
|
||||
# Launch the actual tests
|
|
@ -9,9 +9,17 @@
|
|||
* @copyright Sander Brand 2016
|
||||
*/
|
||||
|
||||
require_once __DIR__ . '/../../../tests/bootstrap.php';
|
||||
$nc_require_base = getenv('SERVER_BASE_DIR');
|
||||
|
||||
if ($nc_require_base) {
|
||||
require_once $nc_require_base . '/tests/bootstrap.php';
|
||||
}
|
||||
else{
|
||||
require_once __DIR__ . '/../../../tests/bootstrap.php';
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/../appinfo/autoload.php';
|
||||
#require_once __DIR__ . '/db/DatabaseHelperTest.php';
|
||||
require_once __DIR__ . '/db/DatabaseHelperTest.php';
|
||||
|
||||
|
||||
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
|
||||
|
|
Loading…
Reference in a new issue