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
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-10-22 13:06:05 +0300
committerGitHub <noreply@github.com>2021-10-22 13:06:05 +0300
commit2be0eda47cb3891573f4e0c609a46a080095b017 (patch)
tree0defd6f5a535a316c38cc1afa26135e7faefa328 /tests/lib/Files
parentb2c32b7e6c4a7ea1a248623134a6e681053c5557 (diff)
parenta1ca901e58e89a8cd7848910fd9700b4b6f5b402 (diff)
Merge pull request #29220 from nextcloud/s3-external-list
Diffstat (limited to 'tests/lib/Files')
-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'));