mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(tests): Fix deprecation errors in S3 tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
c3d63c57ce
commit
fceb781058
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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue