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:
parent
fd1d85365c
commit
6c156d81ed
|
@ -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…
Reference in New Issue