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:
Côme Chilliet 2025-12-18 16:10:06 +01:00 committed by Robin Appelman
parent 408f9e8256
commit 166febb940
9 changed files with 9 additions and 9 deletions

View file

@ -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,

View file

@ -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);
}

View file

@ -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);

View file

@ -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('/');

View file

@ -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']);

View file

@ -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('/');

View file

@ -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'] .= '/';
}

View file

@ -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);
}

View file

@ -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'];
}