Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichaIng <micha@dietpi.com>2021-10-23 21:20:25 +0300
committerGitHub <noreply@github.com>2021-10-23 21:20:25 +0300
commit629225c30a4335e95c4199b00846eb2e26ffab5f (patch)
tree916605dc7c5368986e7ec021128179a1dad4e820 /tests
parentdaeeae4ae0d47503ff8ae311e3ef0e9f381daf6a (diff)
parente62390045aa6289195e34fd6ea6d96d46e7ab33f (diff)
Merge pull request #29391 from nextcloud/backport/29220/stable22
[stable22] s3 external storage fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Storage/Storage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/Files/Storage/Storage.php b/tests/lib/Files/Storage/Storage.php
index 9fae1a8484a..c4248b7e0da 100644
--- a/tests/lib/Files/Storage/Storage.php
+++ b/tests/lib/Files/Storage/Storage.php
@@ -498,6 +498,9 @@ abstract class Storage extends \Test\TestCase {
$this->assertTrue($this->instance->file_exists('target/subfolder'));
$this->assertTrue($this->instance->file_exists('target/subfolder/test.txt'));
+ $contents = iterator_to_array($this->instance->getDirectoryContent(''));
+ $this->assertCount(1, $contents);
+
$this->assertEquals('foo', $this->instance->file_get_contents('target/test1.txt'));
$this->assertEquals('qwerty', $this->instance->file_get_contents('target/test2.txt'));
$this->assertEquals('bar', $this->instance->file_get_contents('target/subfolder/test.txt'));