Skip to content

Commit 56d75b8

Browse files
authored
Merge pull request #30210 from nextcloud/dependabot/composer/build/integration/guzzlehttp/guzzle-7.4.1
Update guzzlehttp/guzzle requirement from 6.5.2 to 7.4.1 in /build/integration
2 parents 9e80f6f + e4588a3 commit 56d75b8

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

build/integration/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"require-dev": {
33
"phpunit/phpunit": "~6.5",
44
"behat/behat": "~3.10.0",
5-
"guzzlehttp/guzzle": "6.5.2",
5+
"guzzlehttp/guzzle": "7.4.1",
66
"jarnaiz/behat-junit-formatter": "^1.3",
77
"sabre/dav": "4.3.1",
88
"symfony/event-dispatcher": "~5.3"

build/integration/features/bootstrap/Avatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function loggedInUserGetsTemporaryAvatarWith(string $statusCode) {
109109
* @param string $source
110110
*/
111111
public function loggedInUserPostsTemporaryAvatarFromFile(string $source) {
112-
$file = \GuzzleHttp\Psr7\stream_for(fopen($source, 'r'));
112+
$file = \GuzzleHttp\Psr7\Utils::streamFor(fopen($source, 'r'));
113113

114114
$this->sendingAToWithRequesttoken('POST', '/index.php/avatar',
115115
[

build/integration/features/bootstrap/ChecksumsContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private function getPasswordForUser($userName) {
7979
* @param string $checksum
8080
*/
8181
public function userUploadsFileToWithChecksum($user, $source, $destination, $checksum) {
82-
$file = \GuzzleHttp\Psr7\stream_for(fopen($source, 'r'));
82+
$file = \GuzzleHttp\Psr7\Utils::streamFor(fopen($source, 'r'));
8383
try {
8484
$this->response = $this->client->put(
8585
$this->baseUrl . '/remote.php/webdav' . $destination,

build/integration/features/bootstrap/FilesDropContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function droppingFileWith($path, $content) {
5151
$options['headers'] = [
5252
'X-REQUESTED-WITH' => 'XMLHttpRequest'
5353
];
54-
$options['body'] = \GuzzleHttp\Psr7\stream_for($content);
54+
$options['body'] = \GuzzleHttp\Psr7\Utils::streamFor($content);
5555

5656
try {
5757
$this->response = $client->request('PUT', $fullUrl, $options);

build/integration/features/bootstrap/WebDav.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public function checkElementList($user, $expectedElements) {
493493
* @param string $destination
494494
*/
495495
public function userUploadsAFileTo($user, $source, $destination) {
496-
$file = \GuzzleHttp\Psr7\stream_for(fopen($source, 'r'));
496+
$file = \GuzzleHttp\Psr7\Utils::streamFor(fopen($source, 'r'));
497497
try {
498498
$this->response = $this->makeDavRequest($user, "PUT", $destination, [], $file);
499499
} catch (\GuzzleHttp\Exception\ServerException $e) {
@@ -525,7 +525,7 @@ public function userAddsAFileTo($user, $bytes, $destination) {
525525
* @When User :user uploads file with content :content to :destination
526526
*/
527527
public function userUploadsAFileWithContentTo($user, $content, $destination) {
528-
$file = \GuzzleHttp\Psr7\stream_for($content);
528+
$file = \GuzzleHttp\Psr7\Utils::streamFor($content);
529529
try {
530530
$this->response = $this->makeDavRequest($user, "PUT", $destination, [], $file);
531531
} catch (\GuzzleHttp\Exception\ServerException $e) {
@@ -583,7 +583,7 @@ public function userCreatedAFolder($user, $destination) {
583583
*/
584584
public function userUploadsChunkFileOfWithToWithChecksum($user, $num, $total, $data, $destination) {
585585
$num -= 1;
586-
$data = \GuzzleHttp\Psr7\stream_for($data);
586+
$data = \GuzzleHttp\Psr7\Utils::streamFor($data);
587587
$file = $destination . '-chunking-42-' . $total . '-' . $num;
588588
$this->makeDavRequest($user, 'PUT', $file, ['OC-Chunked' => '1'], $data, "uploads");
589589
}
@@ -654,7 +654,7 @@ public function userCreatesANewChunkingUploadWithId($user, $id) {
654654
* @Given user :user uploads new chunk file :num with :data to id :id
655655
*/
656656
public function userUploadsNewChunkFileOfWithToId($user, $num, $data, $id) {
657-
$data = \GuzzleHttp\Psr7\stream_for($data);
657+
$data = \GuzzleHttp\Psr7\Utils::streamFor($data);
658658
$destination = '/uploads/' . $user . '/' . $id . '/' . $num;
659659
$this->makeDavRequest($user, 'PUT', $destination, [], $data, "uploads");
660660
}

0 commit comments

Comments
 (0)