mirror of
https://github.com/nextcloud/passman.git
synced 2025-09-06 13:04:37 +08:00
PHPUnit fixes for custom locations
This commit is contained in:
parent
c4f8439126
commit
bb6c7a13b9
2 changed files with 12 additions and 4 deletions
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
|
#!/bin/bash
|
||||||
# Setup your testing environment paths
|
# Setup your testing environment paths
|
||||||
export SERVER_BASE_DIR=/var/www/html/nextcloud/
|
export SERVER_BASE_DIR=/var/www/html/
|
||||||
export SERVER_CONFIG_DIR=/var/www/html/nextcloud/config/
|
export SERVER_CONFIG_DIR=/var/www/html/config/
|
||||||
export SERVER_CONFIG_FILE=config.php
|
export SERVER_CONFIG_FILE=config.php
|
||||||
|
|
||||||
# Launch the actual tests
|
# Launch the actual tests
|
|
@ -9,9 +9,17 @@
|
||||||
* @copyright Sander Brand 2016
|
* @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__ . '/../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"
|
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
|
||||||
|
|
Loading…
Add table
Reference in a new issue