aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-02-11 21:33:15 +0100
committerGitHub <noreply@github.com>2020-02-11 21:33:15 +0100
commitea67d391c0322a9adc17c1048d9cacf65b20932f (patch)
tree2a7d56652d8fd340fb19c673f39712d73933e71f
parentb943e0143ac67627d732c113a2d98831190d4e06 (diff)
parent0687b9ed8a08d2f9828b1fcc7882cd3071c61509 (diff)
downloadnextcloud-server-ea67d391c0322a9adc17c1048d9cacf65b20932f.tar.gz
nextcloud-server-ea67d391c0322a9adc17c1048d9cacf65b20932f.zip
Merge pull request #19323 from nextcloud/3rdparty/composer/guzzlehttp/guzzle-6.5.2
[3rdparty] Bump guzzlehttp/guzzle from 6.3.3 to 6.5.2
m---------3rdparty0
-rw-r--r--tests/lib/Http/Client/ClientTest.php48
-rw-r--r--tests/lib/Http/Client/ResponseTest.php4
3 files changed, 26 insertions, 26 deletions
diff --git a/3rdparty b/3rdparty
-Subproject 7b4be1f0bf34c520e5672c8a6fb79de27191a93
+Subproject ad7f5526980028b68bc8dcca9a63efc9cae3756
diff --git a/tests/lib/Http/Client/ClientTest.php b/tests/lib/Http/Client/ClientTest.php
index 2a7bd6a185d..73cfb0bb6ca 100644
--- a/tests/lib/Http/Client/ClientTest.php
+++ b/tests/lib/Http/Client/ClientTest.php
@@ -122,8 +122,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('get', 'http://localhost/', $this->defaultRequestOptions)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->get('http://localhost/', [])->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->get('http://localhost/', [])->getStatusCode());
}
public function testGetWithOptions(): void {
@@ -136,8 +136,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('get', 'http://localhost/', $options)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->get('http://localhost/', $options)->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->get('http://localhost/', $options)->getStatusCode());
}
public function testPost(): void {
@@ -145,8 +145,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('post', 'http://localhost/', $this->defaultRequestOptions)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->post('http://localhost/', [])->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->post('http://localhost/', [])->getStatusCode());
}
public function testPostWithOptions(): void {
@@ -159,8 +159,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('post', 'http://localhost/', $options)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->post('http://localhost/', $options)->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->post('http://localhost/', $options)->getStatusCode());
}
public function testPut(): void {
@@ -168,8 +168,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('put', 'http://localhost/', $this->defaultRequestOptions)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->put('http://localhost/', [])->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->put('http://localhost/', [])->getStatusCode());
}
public function testPutWithOptions(): void {
@@ -182,8 +182,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('put', 'http://localhost/', $options)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->put('http://localhost/', $options)->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->put('http://localhost/', $options)->getStatusCode());
}
public function testDelete(): void {
@@ -191,8 +191,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('delete', 'http://localhost/', $this->defaultRequestOptions)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->delete('http://localhost/', [])->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->delete('http://localhost/', [])->getStatusCode());
}
public function testDeleteWithOptions(): void {
@@ -205,8 +205,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('delete', 'http://localhost/', $options)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->delete('http://localhost/', $options)->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->delete('http://localhost/', $options)->getStatusCode());
}
public function testOptions(): void {
@@ -214,8 +214,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('options', 'http://localhost/', $this->defaultRequestOptions)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->options('http://localhost/', [])->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->options('http://localhost/', [])->getStatusCode());
}
public function testOptionsWithOptions(): void {
@@ -228,8 +228,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('options', 'http://localhost/', $options)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->options('http://localhost/', $options)->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->options('http://localhost/', $options)->getStatusCode());
}
public function testHead(): void {
@@ -237,8 +237,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('head', 'http://localhost/', $this->defaultRequestOptions)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->head('http://localhost/', [])->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->head('http://localhost/', [])->getStatusCode());
}
public function testHeadWithOptions(): void {
@@ -251,8 +251,8 @@ class ClientTest extends \Test\TestCase {
$this->guzzleClient->method('request')
->with('head', 'http://localhost/', $options)
- ->willReturn(new Response(1337));
- $this->assertEquals(1337, $this->client->head('http://localhost/', $options)->getStatusCode());
+ ->willReturn(new Response(418));
+ $this->assertEquals(418, $this->client->head('http://localhost/', $options)->getStatusCode());
}
public function testSetDefaultOptionsWithNotInstalled(): void {
diff --git a/tests/lib/Http/Client/ResponseTest.php b/tests/lib/Http/Client/ResponseTest.php
index 963a3eb8179..f8f520d6a73 100644
--- a/tests/lib/Http/Client/ResponseTest.php
+++ b/tests/lib/Http/Client/ResponseTest.php
@@ -21,7 +21,7 @@ class ResponseTest extends \Test\TestCase {
protected function setUp(): void {
parent::setUp();
- $this->guzzleResponse = new GuzzleResponse(1337);
+ $this->guzzleResponse = new GuzzleResponse(418);
}
public function testGetBody() {
@@ -31,7 +31,7 @@ class ResponseTest extends \Test\TestCase {
public function testGetStatusCode() {
$response = new Response($this->guzzleResponse);
- $this->assertSame(1337, $response->getStatusCode());
+ $this->assertSame(418, $response->getStatusCode());
}
public function testGetHeader() {