aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-10-14 17:28:32 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-10-22 12:34:30 +0000
commita3d365b33b651d3caefcd312e0454f50bb3a379b (patch)
treec29cf1fcd0aa6023496d4a50e740e30d93baf119 /tests
parent30f0d9962a219012ead5ec26e9cbdabb956244a6 (diff)
downloadnextcloud-server-a3d365b33b651d3caefcd312e0454f50bb3a379b.tar.gz
nextcloud-server-a3d365b33b651d3caefcd312e0454f50bb3a379b.zip
ci
Signed-off-by: Robin Appelman <robin@icewind.nl>
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'));