diff options
author | MichaIng <micha@dietpi.com> | 2021-10-23 21:20:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 21:20:25 +0300 |
commit | 629225c30a4335e95c4199b00846eb2e26ffab5f (patch) | |
tree | 916605dc7c5368986e7ec021128179a1dad4e820 /tests | |
parent | daeeae4ae0d47503ff8ae311e3ef0e9f381daf6a (diff) | |
parent | e62390045aa6289195e34fd6ea6d96d46e7ab33f (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.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')); |