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>
This commit is contained in:
Daniel Kesselberg 2019-04-16 21:27:03 +02:00
parent fd1d85365c
commit 6c156d81ed
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 1 additions and 6 deletions

View File

@ -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);