aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-29 01:38:08 +0200
committerJoas Schilling <coding@schilljs.com>2024-01-26 14:53:33 +0100
commitfceb781058516e7bd534719957a3d8354517b333 (patch)
treeb11acbb0145ee8e91893646651dbf6583762ecf5 /tests
parentc3d63c57ce741ef1ad9dad7b0217533141061c79 (diff)
downloadnextcloud-server-fceb781058516e7bd534719957a3d8354517b333.tar.gz
nextcloud-server-fceb781058516e7bd534719957a3d8354517b333.zip
fix(tests): Fix deprecation errors in S3 tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/ObjectStore/S3Test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Files/ObjectStore/S3Test.php b/tests/lib/Files/ObjectStore/S3Test.php
index fd451dc3c01..33130a152a1 100644
--- a/tests/lib/Files/ObjectStore/S3Test.php
+++ b/tests/lib/Files/ObjectStore/S3Test.php
@@ -106,6 +106,7 @@ class S3Test extends ObjectStoreTest {
}
public function assertNoUpload($objectUrn) {
+ /** @var \OC\Files\ObjectStore\S3 */
$s3 = $this->getInstance();
$s3client = $s3->getConnection();
$uploads = $s3client->listMultipartUploads([
@@ -119,7 +120,7 @@ class S3Test extends ObjectStoreTest {
$s3 = $this->getInstance();
$emptyStream = fopen("php://memory", "r");
- fwrite($emptyStream, null);
+ fwrite($emptyStream, '');
$s3->writeObject('emptystream', $emptyStream);