Fix testGetProxyUri

Changed the implementation for getProxyUri with
fd1d85365c

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>
pull/14363/head
Daniel Kesselberg 7 years ago
parent fd1d85365c
commit 6c156d81ed
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
  1. 7
      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);

Loading…
Cancel
Save