aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel <mail@danielkesselberg.de>2021-10-08 10:02:01 +0200
committerGitHub <noreply@github.com>2021-10-08 10:02:01 +0200
commit9187e986e10a0e189f825cd462eb9e68bd732981 (patch)
tree0eb9b5b9b534bf82b7db49da6caea8f03e9bb0b6 /tests
parent8d2caa03baad7cce15da42ac58642bca9cbe9449 (diff)
parentbe3f4edf1f38b1ebfd91366334e5a3a91c63cffe (diff)
downloadnextcloud-server-9187e986e10a0e189f825cd462eb9e68bd732981.tar.gz
nextcloud-server-9187e986e10a0e189f825cd462eb9e68bd732981.zip
Merge pull request #28907 from nextcloud/bug/noid/close-stream-local
explicitly close source stream on local / encryption storage
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Storage/Storage.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Files/Storage/Storage.php b/tests/lib/Files/Storage/Storage.php
index ecc2bb50538..9fae1a8484a 100644
--- a/tests/lib/Files/Storage/Storage.php
+++ b/tests/lib/Files/Storage/Storage.php
@@ -658,6 +658,7 @@ abstract class Storage extends \Test\TestCase {
$storage->writeStream('test.txt', $source);
$this->assertTrue($storage->file_exists('test.txt'));
- $this->assertEquals(file_get_contents($textFile), $storage->file_get_contents('test.txt'));
+ $this->assertStringEqualsFile($textFile, $storage->file_get_contents('test.txt'));
+ $this->assertEquals('resource (closed)', gettype($source));
}
}