fix(tests): Fix deprecation errors in S3 tests

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/41003/head
Ferdinand Thiessen 2023-10-29 01:38:08 +07:00 committed by Joas Schilling
parent c3d63c57ce
commit fceb781058
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with 2 additions and 1 deletions

@ -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);