diff options
author | Robin Appelman <robin@icewind.nl> | 2021-10-14 17:28:32 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-10-15 15:35:12 +0200 |
commit | 294b218895f446fe53bf9882c964d7cb49baf41d (patch) | |
tree | 354597b3ded4d61b151849bc1ef06c2e42955c43 /tests | |
parent | 294af4275c3eaf8a40564edc4706ed7fab3f18c2 (diff) | |
download | nextcloud-server-294b218895f446fe53bf9882c964d7cb49baf41d.tar.gz nextcloud-server-294b218895f446fe53bf9882c964d7cb49baf41d.zip |
ci
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Storage/Storage.php | 3 |
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')); |