Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(tests): Fix deprecation errors in S3 tests
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux authored and nickvergessen committed Jan 26, 2024
commit fceb781058516e7bd534719957a3d8354517b333
3 changes: 2 additions & 1 deletion tests/lib/Files/ObjectStore/S3Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public function testSeek() {
}

public function assertNoUpload($objectUrn) {
/** @var \OC\Files\ObjectStore\S3 */
$s3 = $this->getInstance();
$s3client = $s3->getConnection();
$uploads = $s3client->listMultipartUploads([
Expand All @@ -119,7 +120,7 @@ public function testEmptyUpload() {
$s3 = $this->getInstance();

$emptyStream = fopen("php://memory", "r");
fwrite($emptyStream, null);
fwrite($emptyStream, '');

$s3->writeObject('emptystream', $emptyStream);

Expand Down