]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(tests): Fix deprecation errors in S3 tests
authorFerdinand Thiessen <opensource@fthiessen.de>
Sat, 28 Oct 2023 23:38:08 +0000 (01:38 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 26 Jan 2024 13:53:33 +0000 (14:53 +0100)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
tests/lib/Files/ObjectStore/S3Test.php

index fd451dc3c016f8537661eb6349d05ad180d1ec8b..33130a152a1e164f0389da84f28a1955815b7bb4 100644 (file)
@@ -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);