diff options
author | Kent Delante <kent.delante@proton.me> | 2025-04-29 13:33:23 +0800 |
---|---|---|
committer | Kent Delante <kent.delante@proton.me> | 2025-04-29 13:33:58 +0800 |
commit | 0434e2319f2c47dfd0ab07a74d4a84826fc0ebbf (patch) | |
tree | d8fac2a5a34ac677717a736081960d302757561a | |
parent | c02f16aa34e902155a39f3043d0babd189e00001 (diff) | |
download | nextcloud-server-leftybournes/fix/sftp_scan_infinite_loop.tar.gz nextcloud-server-leftybournes/fix/sftp_scan_infinite_loop.zip |
chore: Fix sftp test formattingleftybournes/fix/sftp_scan_infinite_loop
Signed-off-by: Kent Delante <kent.delante@proton.me>
-rw-r--r-- | apps/files_external/tests/Storage/SftpTest.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/files_external/tests/Storage/SftpTest.php b/apps/files_external/tests/Storage/SftpTest.php index 1927cea60ac..deb46d41bf3 100644 --- a/apps/files_external/tests/Storage/SftpTest.php +++ b/apps/files_external/tests/Storage/SftpTest.php @@ -1,4 +1,5 @@ <?php + /** * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors * SPDX-FileCopyrightText: 2016 ownCloud, Inc. @@ -139,12 +140,12 @@ class SftpTest extends \Test\Files\Storage\Storage { } public function testSymlinks(): void { - $this->instance->mkdir('test'); - $this->instance->touch('notes.txt'); + $this->instance->mkdir('test'); + $this->instance->touch('notes.txt'); $this->assertTrue($this->instance->is_dir('test')); $this->assertTrue($this->instance->is_file('notes.txt')); - $root = $this->instance->getRoot(); + $root = $this->instance->getRoot(); $symlinkDir = $root . '/test/slink'; $symlinkFile = $root . '/test/foo.txt'; $this->instance->getConnection()->symlink($root, $symlinkDir); @@ -152,7 +153,7 @@ class SftpTest extends \Test\Files\Storage\Storage { $this->assertTrue($this->instance->getConnection()->is_link($symlinkDir), 'Symlink directory was not created'); $this->assertTrue($this->instance->getConnection()->is_link($symlinkFile), 'Symlink file was not created'); - $contents = $this->instance->getDirectoryContent('test/slink'); + $contents = $this->instance->getDirectoryContent('test/slink'); $files = []; foreach ($contents as $file) { $files[] = $file['name']; |