mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
fix(tests): Use absolute paths for files_external tests configuration files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
408f9e8256
commit
166febb940
9 changed files with 9 additions and 9 deletions
|
|
@ -25,7 +25,7 @@ class Amazons3MultiPartTest extends \Test\Files\Storage\Storage {
|
|||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
|
||||
$this->loadConfig('files_external/tests/config.amazons3.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.amazons3.php');
|
||||
|
||||
$this->instance = new AmazonS3($this->config + [
|
||||
'putSizeLimit' => 1,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class Amazons3Test extends \Test\Files\Storage\Storage {
|
|||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
|
||||
$this->loadConfig('files_external/tests/config.amazons3.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.amazons3.php');
|
||||
$this->instance = new AmazonS3($this->config);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class FtpTest extends \Test\Files\Storage\Storage {
|
|||
parent::setUp();
|
||||
|
||||
$id = $this->getUniqueID();
|
||||
$this->loadConfig('files_external/tests/config.ftp.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.ftp.php');
|
||||
|
||||
$rootInstance = new FTP($this->config);
|
||||
$rootInstance->mkdir($id);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class OwncloudTest extends \Test\Files\Storage\Storage {
|
|||
parent::setUp();
|
||||
|
||||
$id = $this->getUniqueID();
|
||||
$this->loadConfig('files_external/tests/config.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.php');
|
||||
$this->config['owncloud']['root'] .= '/' . $id; //make sure we have an new empty folder to work in
|
||||
$this->instance = new OwnCloud($this->config['owncloud']);
|
||||
$this->instance->mkdir('/');
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class SFTP_KeyTest extends \Test\Files\Storage\Storage {
|
|||
parent::setUp();
|
||||
|
||||
$id = $this->getUniqueID();
|
||||
$this->loadConfig('files_external/tests/config.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.php');
|
||||
// Make sure we have an new empty folder to work in
|
||||
$this->config['sftp_key']['root'] .= '/' . $id;
|
||||
$this->instance = new SFTP_Key($this->config['sftp_key']);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class SftpTest extends \Test\Files\Storage\Storage {
|
|||
parent::setUp();
|
||||
|
||||
$id = $this->getUniqueID();
|
||||
$this->loadConfig('files_external/tests/config.sftp.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.sftp.php');
|
||||
$this->config['root'] .= '/' . $id; //make sure we have an new empty folder to work in
|
||||
$this->instance = new SFTP($this->config);
|
||||
$this->instance->mkdir('/');
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class SmbTest extends \Test\Files\Storage\Storage {
|
|||
parent::setUp();
|
||||
|
||||
$id = $this->getUniqueID();
|
||||
$this->loadConfig('files_external/tests/config.smb.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.smb.php');
|
||||
if (substr($this->config['root'], -1, 1) != '/') {
|
||||
$this->config['root'] .= '/';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class SwiftTest extends \Test\Files\Storage\Storage {
|
|||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
|
||||
$this->loadConfig('files_external/tests/config.swift.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.swift.php');
|
||||
$this->instance = new Swift($this->config);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class WebdavTest extends \Test\Files\Storage\Storage {
|
|||
parent::setUp();
|
||||
|
||||
$id = $this->getUniqueID();
|
||||
$this->loadConfig('files_external/tests/config.webdav.php');
|
||||
$this->loadConfig(__DIR__ . '/../config.webdav.php');
|
||||
if (isset($this->config['wait'])) {
|
||||
$this->waitDelay = $this->config['wait'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue