Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-05-20 12:09:46 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-05-20 14:37:28 +0300
commit8123737a406a969b6cb8cce5f58355b7b8a9e053 (patch)
treec3cb08c2c3b29bd257af991a0736326e64df8b0c /tests/lib/App/AppStore/Fetcher/FetcherBase.php
parent8bcd1c31da7a02e78435aa49508ed3787b11867d (diff)
Revert "Compress the appstore requests by default"
This reverts commit 6ffde128ad17a1ebe38f8d18b21a37d01b47c46b. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/App/AppStore/Fetcher/FetcherBase.php')
-rw-r--r--tests/lib/App/AppStore/Fetcher/FetcherBase.php47
1 files changed, 5 insertions, 42 deletions
diff --git a/tests/lib/App/AppStore/Fetcher/FetcherBase.php b/tests/lib/App/AppStore/Fetcher/FetcherBase.php
index 45f3f22b9d4..2e04f22760e 100644
--- a/tests/lib/App/AppStore/Fetcher/FetcherBase.php
+++ b/tests/lib/App/AppStore/Fetcher/FetcherBase.php
@@ -249,15 +249,7 @@ abstract class FetcherBase extends TestCase {
$client
->expects($this->once())
->method('get')
- ->with(
- $this->equalTo($this->endpoint),
- $this->equalTo([
- 'timeout' => 10,
- 'headers' => [
- 'Accept-Encoding' => 'gzip',
- ]
- ])
- )
+ ->with($this->endpoint)
->willReturn($response);
$response
->expects($this->once())
@@ -350,15 +342,7 @@ abstract class FetcherBase extends TestCase {
$client
->expects($this->once())
->method('get')
- ->with(
- $this->equalTo($this->endpoint),
- $this->equalTo([
- 'timeout' => 10,
- 'headers' => [
- 'Accept-Encoding' => 'gzip',
- ]
- ])
- )
+ ->with($this->endpoint)
->willReturn($response);
$response
->expects($this->once())
@@ -446,15 +430,7 @@ abstract class FetcherBase extends TestCase {
$client
->expects($this->once())
->method('get')
- ->with(
- $this->equalTo($this->endpoint),
- $this->equalTo([
- 'timeout' => 10,
- 'headers' => [
- 'Accept-Encoding' => 'gzip',
- ]
- ])
- )
+ ->with($this->endpoint)
->willReturn($response);
$response
->expects($this->once())
@@ -519,15 +495,7 @@ abstract class FetcherBase extends TestCase {
$client
->expects($this->once())
->method('get')
- ->with(
- $this->equalTo($this->endpoint),
- $this->equalTo([
- 'timeout' => 10,
- 'headers' => [
- 'Accept-Encoding' => 'gzip',
- ]
- ])
- )
+ ->with($this->endpoint)
->willThrowException(new \Exception());
$this->assertSame([], $this->fetcher->get());
@@ -584,8 +552,7 @@ abstract class FetcherBase extends TestCase {
$this->equalTo([
'timeout' => 10,
'headers' => [
- 'Accept-Encoding' => 'gzip',
- 'If-None-Match' => '"myETag"',
+ 'If-None-Match' => '"myETag"'
]
])
)->willReturn($response);
@@ -657,7 +624,6 @@ abstract class FetcherBase extends TestCase {
$this->equalTo([
'timeout' => 10,
'headers' => [
- 'Accept-Encoding' => 'gzip',
'If-None-Match' => '"myETag"',
]
])
@@ -744,9 +710,6 @@ abstract class FetcherBase extends TestCase {
$this->equalTo($this->endpoint),
$this->equalTo([
'timeout' => 10,
- 'headers' => [
- 'Accept-Encoding' => 'gzip',
- ],
])
)
->willReturn($response);