diff --git a/tests/Unit/Config/FetcherConfigTest.php b/tests/Unit/Config/FetcherConfigTest.php index 1152ab678..cee7f3fd5 100644 --- a/tests/Unit/Config/FetcherConfigTest.php +++ b/tests/Unit/Config/FetcherConfigTest.php @@ -136,10 +136,12 @@ public function testProxyPortPreserved() ->method('getAppVersion') ->willReturn('1.0'); - $this->sysconfig->expects($this->exactly(1)) + $this->sysconfig->expects($this->exactly(2)) ->method('getSystemValue') - ->with('proxy') - ->willReturn('http://192.168.178.1:80'); + ->willReturnMap([ + ['poxy', 'http://192.168.178.1:80'], + ['proxyuserpwd', null] + ]); $this->class = new FetcherConfig($this->config, $this->sysconfig, $this->appmanager, $this->logger);