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>
->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'));
}
public function testSetDefaultOptionsWithNotInstalled(): void {
$this->config
- ->expects($this->at(2))
+ ->expects($this->at(1))
->method('getSystemValue')
->with('installed', false)
->willReturn(false);