summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-04-16 21:27:03 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-04-16 21:33:56 +0200
commit6c156d81edc98580ceca9d17c4ea37fc7fdc0226 (patch)
treed0f2df5fcc4ef98ff84c5973f280c87ca220b7ed /tests/lib
parentfd1d85365cb1368fa70263fe3ae3b8e59ab56615 (diff)
downloadnextcloud-server-6c156d81edc98580ceca9d17c4ea37fc7fdc0226.tar.gz
nextcloud-server-6c156d81edc98580ceca9d17c4ea37fc7fdc0226.zip
Fix testGetProxyUri
Changed the implementation for getProxyUri with https://github.com/nextcloud/server/pull/14363/commits/fd1d85365cb1368fa70263fe3ae3b8e59ab56615 If proxy is already null then we don't ask for proxyuserpwd. Test failed because we expected getSystemValue to be called once with proxyuserpwd Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Http/Client/ClientTest.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/lib/Http/Client/ClientTest.php b/tests/lib/Http/Client/ClientTest.php
index 2fd23346398..f43958ab865 100644
--- a/tests/lib/Http/Client/ClientTest.php
+++ b/tests/lib/Http/Client/ClientTest.php
@@ -49,11 +49,6 @@ class ClientTest extends \Test\TestCase {
->method('getSystemValue')
->with('proxy', null)
->willReturn(null);
- $this->config
- ->expects($this->at(1))
- ->method('getSystemValue')
- ->with('proxyuserpwd', null)
- ->willReturn(null);
$this->assertNull(self::invokePrivate($this->client, 'getProxyUri'));
}
@@ -269,7 +264,7 @@ class ClientTest extends \Test\TestCase {
public function testSetDefaultOptionsWithNotInstalled(): void {
$this->config
- ->expects($this->at(2))
+ ->expects($this->at(1))
->method('getSystemValue')
->with('installed', false)
->willReturn(false);