From 6c156d81edc98580ceca9d17c4ea37fc7fdc0226 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 16 Apr 2019 21:27:03 +0200 Subject: [PATCH] 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 --- tests/lib/Http/Client/ClientTest.php | 7 +------ 1 file changed, 1 insertion(+), 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); -- 2.39.5